Refondre noms de package selon bonnes pratiques
This commit is contained in:
parent
5c6eed5e6b
commit
6ef8eccbef
17 changed files with 24 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
Package config provides types and methods for managing this application's
|
||||
config options and flags
|
||||
*/
|
||||
package config
|
||||
|
||||
import (
|
||||
|
@ -18,7 +22,7 @@ type WebConfig struct {
|
|||
Port int
|
||||
}
|
||||
|
||||
func GetConfig() (cfg Config, err error) {
|
||||
func UnmarshalConfig() (cfg Config, err error) {
|
||||
return cfg, viper.Unmarshal(&cfg)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue