1
0
mirror of https://github.com/wyx2685/V2bX.git synced 2025-03-10 14:48:12 -04:00
V2bX/conf/conf_test.go
2023-06-09 21:20:41 +08:00

20 lines
304 B
Go

package conf
import (
"log"
"testing"
)
func TestConf_LoadFromPath(t *testing.T) {
c := New()
t.Log(c.LoadFromPath("../example/config.yml.example"))
}
func TestConf_Watch(t *testing.T) {
c := New()
log.Println(c.Watch("../example/config.yml.example", func() {
log.Println(1)
}))
select {}
}