Example #1
0
func New(d db.DB) (*Site, error) {
	s, e := obj.NewInterface(d, &Site{})
	return s.(*Site), e
}
Example #2
0
func New(d db.DB) (*User, error) {
	s, e := obj.NewInterface(d, &User{})
	return s.(*User), e
}
Example #3
0
File: kv.go Project: zhuharev/micro
func New(d db.DB) (*KV, error) {
	s, e := obj.NewInterface(d, &KV{})
	return s.(*KV), e
}
Example #4
0
func New(d db.DB) (*Product, error) {
	s, e := obj.NewInterface(d, &Product{})
	return s.(*Product), e
}
Example #5
0
func NewFrom(a Article, d db.DB) (*Article, error) {
	s, e := obj.NewInterface(d, &a)
	return s.(*Article), e
}