Beispiel #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")
	}
}
Beispiel #2
0
//==============================================================================
func init() {
	orm.Register(utils.PkgRoot((*DatabaseStore)(nil)))
}
Beispiel #3
0
Datei: db.go Projekt: itpkg/ksana
func init() {
	Register(utils.PkgRoot((*Db)(nil)))
}