datatype

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CCL_TIME_FORMART      = "2006-01-02T15:04:05"
	CCL_TIME_FROM_FORMART = "2006-01-02 15:04:05"
	CCL_DATE_FORMART      = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRFTime

type IRFTime struct {
	time.Time
}

func NewFromDateString

func NewFromDateString(dateString string) (*IRFTime, error)

func NewFromTimeString

func NewFromTimeString(dateString string) (*IRFTime, error)

func (IRFTime) MarshalJSON

func (ct IRFTime) MarshalJSON() ([]byte, error)

func (*IRFTime) Scan

func (ct *IRFTime) Scan(value interface{}) error

func (*IRFTime) UnmarshalJSON

func (ct *IRFTime) UnmarshalJSON(b []byte) (err error)

func (IRFTime) Value

func (ct IRFTime) Value() (driver.Value, error)

实现 driver.Valuer 接口, Value 接口不使用指针

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL