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