Documentation ¶
Index ¶
- Variables
- func DecodeTime(str string) (t time.Time, err error)
- type Boolean
- type Date
- func (d Date) DataType(_ sqldriver.Info, sf reflext.StructFielder) columns.Column
- func (d *Date) IsZero() bool
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) MarshalText() ([]byte, error)
- func (d *Date) Scan(it interface{}) error
- func (d Date) String() string
- func (d *Date) UnmarshalJSON(b []byte) (err error)
- func (d *Date) UnmarshalText(b []byte) error
- func (d Date) Value() (driver.Value, error)
- type Key
- func (k *Key) Clone() *Key
- func (k Key) DataType(t sqldriver.Info, sf reflext.StructFielder) columns.Column
- func (k *Key) Encode() string
- func (k *Key) Equal(o *Key) bool
- func (k *Key) GobDecode(buf []byte) error
- func (k *Key) GobEncode() ([]byte, error)
- func (k *Key) ID() string
- func (k *Key) Incomplete() bool
- func (k *Key) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (k *Key) MarshalBinary() ([]byte, error)
- func (k *Key) MarshalJSON() ([]byte, error)
- func (k *Key) MarshalJSONB() ([]byte, error)
- func (k *Key) MarshalText() ([]byte, error)
- func (k *Key) Root() *Key
- func (k *Key) Scan(it interface{}) error
- func (k *Key) String() string
- func (k *Key) UnmarshalBSONValue(t bsontype.Type, b []byte) error
- func (k *Key) UnmarshalBinary(b []byte) error
- func (k *Key) UnmarshalJSON(b []byte) error
- func (k *Key) UnmarshalJSONB(b []byte) error
- func (k *Key) UnmarshalText(b []byte) error
- func (k *Key) Value() (driver.Value, error)
- type Set
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
var ( DDMMYYYY = regexp.MustCompile(`^\d{4}\-\d{2}\-\d{2}$`) DDMMYYYYHHMMSS = regexp.MustCompile(`^\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}:\d{2}$`) )
date format :
var ErrDateFormat = errors.New(`invalid date format, it should be "YYYY-MM-DD"`)
ErrDateFormat :
Functions ¶
Types ¶
type Key ¶
Key :
func IDKey ¶
IDKey creates a new key with an ID. The supplied kind cannot be empty. The supplied parent must either be a complete key or nil. The namespace of the new key is empty.
func NameKey ¶
NameKey creates a new key with a name. The supplied kind cannot be empty. The supplied parent must either be a complete key or nil. The namespace of the new key is empty.
func (*Key) Encode ¶
Encode returns an opaque representation of the key suitable for use in HTML and URLs. This is compatible with the Python and Java runtimes.
func (*Key) Equal ¶
Equal reports whether two keys are equal. Two keys are equal if they are both nil, or if their kinds, IDs, names, namespaces and parents are equal.
func (*Key) GobEncode ¶
GobEncode marshals the key into a sequence of bytes using an encoding/gob.Encoder.
func (*Key) MarshalBSONValue ¶
MarshalBSONValue :
func (*Key) UnmarshalBSONValue ¶
UnmarshalBSONValue :
func (*Key) UnmarshalText ¶ added in v1.0.2
UnmarshalText :