Documentation ¶
Index ¶
- type Metadata
- func (Metadata) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (m Metadata) GormDataType() string
- func (m Metadata) MarshalJSON() ([]byte, error)
- func (m *Metadata) Scan(val interface{}) error
- func (m *Metadata) UnmarshalJSON(b []byte) error
- func (m Metadata) Value() (driver.Value, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
Metadata defiend JSON data type, need to implements driver.Valuer, sql.Scanner interface.
func (Metadata) GormDBDataType ¶
GormDBDataType gorm db data type.
func (Metadata) GormDataType ¶
GormDataType gorm common data type.
func (Metadata) MarshalJSON ¶
MarshalJSON to output non base64 encoded []byte.
func (*Metadata) UnmarshalJSON ¶
UnmarshalJSON to deserialize []byte.
Click to show internal directories.
Click to hide internal directories.