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