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

@ -110,7 +110,7 @@ func GetFilesWithExtRecursively(target string, targetExt string) ([]string, erro
return data, err
}
// GetFilesWithExtRecursively is used to list files with a specific suffix
// GetFilesWithExt is used to list files with a specific suffix
// expectExt should contain the prefix '.'
func GetFilesWithExt(dir string, targetExt string) ([]string, error) {
children, err := ioutil.ReadDir(dir)

View file

@ -58,6 +58,7 @@ type Config struct {
Level Level
}
// Level is the structure of log level
type Level struct {
Name string
Color color.Attribute
@ -65,6 +66,7 @@ type Level struct {
Writer io.Writer
}
// defines a set of log level
var (
LevelDebug = Level{Name: "debug", Color: color.FgWhite, Index: 0, Writer: os.Stdout}
LevelInfo = Level{Name: "info", Color: color.FgWhite, Index: 1, Writer: os.Stdout}

View file

@ -71,4 +71,3 @@ func LoadConfig(filename string, pointer interface{}) error {
return nil
}