clear:formatting code

This commit is contained in:
zhangwenjian
2020-07-23 12:03:17 +08:00
parent 426cec1b62
commit 8c554d7ee7
52 changed files with 486 additions and 502 deletions
+4 -4
View File
@@ -3,14 +3,14 @@ package config
import "github.com/spf13/viper"
type Gen struct {
DBName string
FrontPath string
DBName string
FrontPath string
}
func InitGen(cfg *viper.Viper) *Gen {
return &Gen{
DBName: cfg.GetString("dbname"),
FrontPath: cfg.GetString("frontpath"),
DBName: cfg.GetString("dbname"),
FrontPath: cfg.GetString("frontpath"),
}
}