Documentation
¶
Index ¶
- Constants
- func AddJsonDateTypeValidator()
- func AddValidatorForServer()
- func RandomString(length uint) string
- func RandomStringWithPrefix(prefix string, length uint) string
- func RandomStringWithSuffix(suffix string, length uint) string
- func ValidateJsonDateType(field reflect.Value) interface{}
- type DBJson
- func (j DBJson) GetInt(index uint, key string) int
- func (j DBJson) GetString(index uint, key string) string
- func (DBJson) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (DBJson) GormDataType() string
- func (j *DBJson) Scan(value interface{}) error
- func (j DBJson) Value() (driver.Value, error)
- type MultiInt
- type MultiString
- type MyTime
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func AddJsonDateTypeValidator ¶
func AddJsonDateTypeValidator()
func AddValidatorForServer ¶
func AddValidatorForServer()
func RandomString ¶
func RandomStringWithPrefix ¶
func RandomStringWithSuffix ¶
func ValidateJsonDateType ¶
Types ¶
type DBJson ¶
type DBJson []map[string]interface{}
func (DBJson) GormDBDataType ¶
GormDBDataType 指定数据库数据类型
type MultiString ¶
type MultiString []string
func (MultiString) GormDBDataType ¶
GormDBDataType 指定数据库数据类型
func (*MultiString) Scan ¶
func (s *MultiString) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.