From 5fd2c91b8c7f7c5c7a20525a01855fff5b6762cd Mon Sep 17 00:00:00 2001 From: genofire Date: Sun, 14 Aug 2022 15:16:55 +0200 Subject: [PATCH] fix(misspell): main --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 2003d18..be13567 100644 --- a/main.go +++ b/main.go @@ -7,8 +7,8 @@ import ( "strings" "github.com/knadh/koanf" - "github.com/knadh/koanf/parsers/toml" "github.com/knadh/koanf/parsers/json" + "github.com/knadh/koanf/parsers/toml" "github.com/knadh/koanf/parsers/yaml" "github.com/knadh/koanf/providers/env" "github.com/knadh/koanf/providers/file" @@ -29,7 +29,7 @@ var configExtParser = map[string]koanf.Parser{ type configData struct { log *zap.Logger Log *zap.Config `config:"log"` - API api.Client `config:"api"` + API api.Client `config:"api"` Listen string `config:"listen"` } @@ -48,7 +48,7 @@ func main() { fileExt := filepath.Ext(configPath) parser, ok := configExtParser[fileExt] if !ok { - log.Panic("unsupported file extention:", zap.String("file-ext", fileExt)) + log.Panic("unsupported file extension:", zap.String("file-ext", fileExt)) } if err := k.Load(file.Provider(configPath), parser); err != nil { log.Panic("load file config:", zap.Error(err))