Documentation
¶
Index ¶
- Constants
- type CDate
- func (CDate) GormDataType() string
- func (t CDate) IsZero() bool
- func (t CDate) MarshalJSON() ([]byte, error)
- func (t *CDate) Scan(v any) (err error)
- func (t CDate) String() string
- func (t CDate) Time() time.Time
- func (t *CDate) UnmarshalJSON(b []byte) (err error)
- func (t *CDate) UnmarshalParam(param string) (err error)
- func (t CDate) Value() (driver.Value, error)
- type CNTime
- func (CNTime) GormDataType() string
- func (t CNTime) IsZero() bool
- func (t CNTime) MarshalJSON() ([]byte, error)
- func (t *CNTime) Scan(v any) (err error)
- func (t CNTime) String() string
- func (t CNTime) Time() time.Time
- func (t *CNTime) UnmarshalJSON(b []byte) (err error)
- func (t *CNTime) UnmarshalParam(param string) (err error)
- func (t CNTime) Value() (driver.Value, error)
- type CSTime
- func (CSTime) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (t CSTime) IsZero() bool
- func (t CSTime) MarshalJSON() ([]byte, error)
- func (t *CSTime) Scan(v any) (err error)
- func (t CSTime) String() string
- func (t CSTime) Time() time.Time
- func (t *CSTime) UnmarshalJSON(b []byte) (err error)
- func (t *CSTime) UnmarshalParam(param string) (err error)
- func (t CSTime) Value() (driver.Value, error)
- type CTime
- func (CTime) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (CTime) GormDataType() string
- func (t CTime) IsZero() bool
- func (t CTime) MarshalJSON() ([]byte, error)
- func (t *CTime) Scan(v any) (err error)
- func (t CTime) String() string
- func (t CTime) Time() time.Time
- func (t *CTime) UnmarshalJSON(b []byte) (err error)
- func (t *CTime) UnmarshalParam(param string) (err error)
- func (t CTime) Value() (driver.Value, error)
- type CYM
- func (CYM) GormDataType() string
- func (t CYM) IsZero() bool
- func (t CYM) MarshalJSON() ([]byte, error)
- func (t *CYM) Scan(v any) (err error)
- func (t CYM) String() string
- func (t CYM) Time() time.Time
- func (t *CYM) UnmarshalJSON(b []byte) (err error)
- func (t *CYM) UnmarshalParam(param string) (err error)
- func (t CYM) Value() (driver.Value, error)
Constants ¶
View Source
const ( Day = 24 * time.Minute Week = 7 * Day Layout = "2006-01-02 15:04:05" // datetime LayoutN = "2006-01-02 15:04:05.000" // datetime(3) LayoutDate = "2006-01-02" // date LayoutYM = "2006-01" // date LayoutS = "15:04:05" // time LayoutZero = "0000-00-00 00:00:00.000000000" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDate ¶
CDate format LayoutDate
func (CDate) GormDataType ¶
func (CDate) MarshalJSON ¶
func (*CDate) UnmarshalJSON ¶
func (*CDate) UnmarshalParam ¶ added in v1.2.9
type CNTime ¶
CNTime format LayoutN
func (CNTime) GormDataType ¶
func (CNTime) MarshalJSON ¶
func (*CNTime) UnmarshalJSON ¶
func (*CNTime) UnmarshalParam ¶ added in v1.2.9
type CSTime ¶
CSTime format LayoutS
func (CSTime) GormDBDataType ¶ added in v1.2.3
func (CSTime) MarshalJSON ¶
func (*CSTime) UnmarshalJSON ¶
func (*CSTime) UnmarshalParam ¶ added in v1.2.9
type CTime ¶
CTime china time/date format Layout
func (CTime) GormDBDataType ¶ added in v1.2.3
func (CTime) GormDataType ¶
func (CTime) MarshalJSON ¶
func (*CTime) UnmarshalJSON ¶
func (*CTime) UnmarshalParam ¶ added in v1.2.9
type CYM ¶ added in v1.2.3
CYM format LayoutYM
func (CYM) GormDataType ¶ added in v1.2.3
func (CYM) MarshalJSON ¶ added in v1.2.3
func (*CYM) UnmarshalJSON ¶ added in v1.2.3
func (*CYM) UnmarshalParam ¶ added in v1.2.9
Click to show internal directories.
Click to hide internal directories.