chore(*): format

Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
storyicon 2021-07-22 00:58:28 +08:00
parent 3bc2cede39
commit dc1e825e2b
No known key found for this signature in database
GPG key ID: 245915D985F966CF
16 changed files with 233 additions and 24 deletions

View file

@ -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 {

View file

@ -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 {