package options import ( "gopkg.in/yaml.v3" "os" "testing" ) func TestGenConfig(t *testing.T) { var opt = Config{ DB: DBOption{}, Proxy: ProxyOption{Subscribes: []string{"123", "345"}}, } yaml.NewEncoder(os.Stdout).Encode(&opt) }