This commit is contained in:
lzf
2024-07-19 15:50:30 +08:00
2 changed files with 4 additions and 30 deletions

View File

@@ -1,25 +0,0 @@
package myconf
import (
"fmt"
"testing"
)
func TestConf(t *testing.T) {
type Config struct {
App struct {
Name string
Addr string
Port int
}
Redis struct {
Addr string
Db int
}
}
var config = &Config{}
Init("test.yaml", config)
fmt.Printf("%+v\n", config)
}