Documentation
¶
Index ¶
- Variables
- func Distance(point string, dist uint32) func(db *gorm.DB) *gorm.DB
- func NewMysql(config *store.Config) store.Store
- func Now() string
- func Page(page, lmt uint32) func(db *gorm.DB) *gorm.DB
- func ParseTime(format, time_str string) (time.Time, error)
- func RegisterPlugins(db *gorm.DB, conf *store.Config, plugins []string)
- func Timezome(tz map[string]int64, field string, format ...string) func(db *gorm.DB) *gorm.DB
- type Mysql
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginsMap = map[string]func(db *gorm.DB, config *store.Config){ "tagfile": tagfile.Register, "unmarshaler": unmarshaler.Register, }
View Source
var TFORMAT = "2006-01-02T15:04:05+08:00"
View Source
var TIME_LOCATION = "Asia/Shanghai" //上海
Functions ¶
func RegisterPlugins ¶ added in v0.0.5
Types ¶
Click to show internal directories.
Click to hide internal directories.