示例#1
0
文件: utils_test.go 项目: itpkg/ksana
func TestPkgRoot(t *testing.T) {
	pr := ks.PkgRoot((*ks.Aes)(nil))
	if strings.HasSuffix(pr, "github.com/itpkg/ksana/utils") {
		t.Logf("pkg root: %s", pr)
	} else {
		t.Errorf("bad pkg root")
	}
}
示例#2
0
//==============================================================================
func init() {
	orm.Register(utils.PkgRoot((*DatabaseStore)(nil)))
}
示例#3
0
文件: db.go 项目: itpkg/ksana
func init() {
	Register(utils.PkgRoot((*Db)(nil)))
}