Exemple #1
0
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")
	}
}
Exemple #2
0
//==============================================================================
func init() {
	orm.Register(utils.PkgRoot((*DatabaseStore)(nil)))
}
Exemple #3
0
func init() {
	Register(utils.PkgRoot((*Db)(nil)))
}