修改:代码风格

This commit is contained in:
2023-07-07 14:45:19 +08:00
parent 9276777a94
commit 1679f384ee
5 changed files with 68 additions and 63 deletions

View File

@@ -1,7 +1,6 @@
package config
import (
"fmt"
"github.com/spf13/viper"
"log"
"os"
@@ -34,11 +33,6 @@ type Config struct {
Auth map[string]string
}
func main() {
config := ReadConfig()
fmt.Printf("%+v", config)
}
func ReadConfig() Config {
conf := Config{}
viper.SetDefault("log.handlers", "console")