Documentation
¶
Index ¶
- type Date
- func (date *Date) GobDecode(b []byte) error
- func (date Date) GobEncode() ([]byte, error)
- func (date Date) GormDataType() string
- func (date Date) MarshalJSON() ([]byte, error)
- func (date *Date) Scan(value interface{}) (err error)
- func (date *Date) UnmarshalJSON(b []byte) error
- func (date *Date) UnmarshalParam(param string) error
- func (date Date) Value() (driver.Value, error)
- type Time
- func (Time) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Time) GormDataType() string
- func (t Time) MarshalJSON() ([]byte, error)
- func (t *Time) Scan(src interface{}) error
- func (t Time) String() string
- func (t *Time) UnmarshalJSON(data []byte) error
- func (t *Time) UnmarshalParam(param string) error
- func (t Time) Value() (driver.Value, error)
- type URL
- func (URL) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (URL) GormDataType() string
- func (u URL) MarshalJSON() ([]byte, error)
- func (u *URL) Scan(value interface{}) error
- func (u *URL) String() string
- func (u *URL) UnmarshalJSON(data []byte) error
- func (u *URL) UnmarshalParam(param string) error
- func (u URL) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
func (Date) GormDataType ¶
GormDataType gorm common data type
func (Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
func (*Date) UnmarshalParam ¶
type Time ¶
Time is time data type.
func (Time) GormDBDataType ¶
GormDBDataType returns gorm DB data type based on the current using database.
func (Time) GormDataType ¶
GormDataType returns gorm common data type. This type is used for the field's column type.
func (Time) MarshalJSON ¶
MarshalJSON implements json.Marshaler to convert Time to json serialization.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler to deserialize json data.
func (*Time) UnmarshalParam ¶
type URL ¶
func (URL) GormDataType ¶
func (URL) MarshalJSON ¶
func (*URL) UnmarshalJSON ¶
func (*URL) UnmarshalParam ¶
Click to show internal directories.
Click to hide internal directories.