mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2026-02-02 17:35:08 +01:00
chore(*): format
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
3bc2cede39
commit
dc1e825e2b
16 changed files with 233 additions and 24 deletions
|
|
@ -83,7 +83,7 @@ func LoadConfigs(path string) ([]*Config, error) {
|
|||
return ret, nil
|
||||
}
|
||||
|
||||
// Similar to LoadConfigs, but obtains the abstraction of the Config prototype structure
|
||||
// LoadConfigItems is similar to LoadConfigs, but obtains the abstraction of the Config prototype structure
|
||||
func LoadConfigItems(path string) ([]ConfigItem, error) {
|
||||
data, err := LoadConfigs(path)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ type ConfigItem interface {
|
|||
Config() *Config
|
||||
}
|
||||
|
||||
// GetConfigs is used to generate Config from given config entity
|
||||
// GetConfigItems is used to generate ConfigItem from given config entity
|
||||
func GetConfigItems(data []*Config, path string) []ConfigItem {
|
||||
ret := make([]ConfigItem, 0, len(data))
|
||||
for i, item := range data {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue