V2bX/conf/conf_test.go

18 lines
262 B
Go
Raw Normal View History

2023-04-07 01:11:56 -04:00
package conf
2023-05-21 23:20:09 -04:00
2023-06-01 22:18:10 -04:00
import (
"log"
2023-07-29 06:47:47 -04:00
"strings"
2023-06-01 22:18:10 -04:00
"testing"
)
2023-05-21 23:20:09 -04:00
func TestConf_LoadFromPath(t *testing.T) {
c := New()
2023-06-09 09:20:41 -04:00
t.Log(c.LoadFromPath("../example/config.yml.example"))
2023-05-21 23:20:09 -04:00
}
2023-06-01 22:18:10 -04:00
func TestConf_Watch(t *testing.T) {
2023-07-29 06:47:47 -04:00
//c := New()
log.Println(strings.Split("aaaa", " "))
2023-06-01 22:18:10 -04:00
}