watcher/pkg/options/config_test.go

16 lines
245 B
Go
Raw Normal View History

2024-04-10 17:36:56 +08:00
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)
}