16 lines
245 B
Go
16 lines
245 B
Go
|
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)
|
||
|
}
|