This commit is contained in:
Yun
2024-04-13 10:43:10 +08:00
parent 9913cfa952
commit 9b497910e1
3 changed files with 27 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
package yamlx_test
import (
"fmt"
"testing"
"code.yun.ink/pkg/yamlx"
)
func TestConfig(t *testing.T) {
c := Config{}
yamlx.InitConfig("./demo.yaml", &c)
fmt.Println(c)
}
type Config struct {
Name string `json:"name" yaml:"name"`
}