Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB
)
View Source
var Models = map[string]*ModelDescriptor{}
View Source
var NowFunc = func() time.Time { return time.Now() }
NowFunc returns current time, this function is exported in order to be able to give the flexibility to the developer to customize it according to their needs, e.g:
gorm.NowFunc = func() time.Time { return time.Now().UTC() }
Functions ¶
Types ¶
type ModelDescriptor ¶
type ModelDescriptor struct { Type interface{} New func() interface{} NewSlice func() interface{} }
Click to show internal directories.
Click to hide internal directories.