Documentation ¶
Index ¶
- func Int32Pointer(i interface{}) *int32
- func Int64Pointer(i interface{}) *int64
- func IntPointer(i interface{}) *int
- func StrPointer(str interface{}) *string
- func UInt32Pointer(i interface{}) *uint32
- func UInt64Pointer(i interface{}) *uint64
- type JSON
- type Time
- func (t Time) Add(d time.Duration) Time
- func (t Time) AddDate(years int, months int, days int) Time
- func (t Time) After(u time.Time) bool
- func (t Time) DayEnd() string
- func (t Time) MarshalJSON() ([]byte, error)
- func (t *Time) Scan(v interface{}) error
- func (t Time) Sub(u Time) time.Duration
- func (t Time) TimeToIntDate() int32
- func (t *Time) UnmarshalJSON(data []byte) error
- func (t Time) Value() (driver.Value, error)
- func (t Time) Ymd() string
- func (t Time) YmdHis() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int32Pointer ¶ added in v0.0.9
func Int32Pointer(i interface{}) *int32
func Int64Pointer ¶ added in v0.0.9
func Int64Pointer(i interface{}) *int64
func IntPointer ¶ added in v0.0.9
func IntPointer(i interface{}) *int
func StrPointer ¶ added in v0.0.9
func StrPointer(str interface{}) *string
func UInt32Pointer ¶ added in v0.0.9
func UInt32Pointer(i interface{}) *uint32
func UInt64Pointer ¶ added in v0.0.9
func UInt64Pointer(i interface{}) *uint64
Types ¶
type Time ¶
func NowPointer ¶
func NowPointer() *Time
func (Time) MarshalJSON ¶ added in v0.1.4
func (Time) TimeToIntDate ¶ added in v0.1.6
TimeToIntDate 时间转为INT的日期格式(20060102)
func (*Time) UnmarshalJSON ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.