package viperx_test import ( "fmt" "testing" "code.yun.ink/pkg/viperx" ) func TestViper(t *testing.T) { var data Config viperx.InitConfig("./config.yml", &data) fmt.Println(data) } type Config struct { Name string `mapstructure:"name" json:"name" yaml:"name"` }