mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
refactor conf
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestConf_LoadFromPath(t *testing.T) {
|
||||
c := New()
|
||||
t.Log(c.LoadFromPath("../example/config.yml.example"))
|
||||
t.Log(c.LoadFromPath("./config.json"), c.NodeConfig)
|
||||
}
|
||||
|
||||
func TestConf_Watch(t *testing.T) {
|
||||
//c := New()
|
||||
log.Println(strings.Split("aaaa", " "))
|
||||
c := New()
|
||||
t.Log(c.Watch("./1.json", "", func() {}))
|
||||
select {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user