Refondre noms de package selon bonnes pratiques

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-15 17:10:57 -04:00
parent 5c6eed5e6b
commit 6ef8eccbef
17 changed files with 24 additions and 6 deletions

View file

@ -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)
}