Documentation ¶
Index ¶
Constants ¶
View Source
const DateTimeFormatStr = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatamanType ¶
type DatamanType string
TODO: rename to SchemaMan Type?
const ( Document DatamanType = "document" String DatamanType = "string" // max len 4096 Text DatamanType = "text" Serial DatamanType = "serial" // We should support converting anything to an int that doesn't lose data Int DatamanType = "int" // TODO: int64 // TODO: uint // TODO: uint64 Float DatamanType = "float" Bool DatamanType = "bool" // TODO: actually implement DateTime DatamanType = "datetime" JSON DatamanType = "json" )
func (DatamanType) Normalize ¶
func (f DatamanType) Normalize(val interface{}) (interface{}, error)
Normalize the given interface into what we want/expect
Click to show internal directories.
Click to hide internal directories.