Versions in this module Expand all Collapse all v0 v0.0.2 Oct 30, 2023 v0.0.1 Oct 30, 2023 Changes in this version + var CST = time.FixedZone("CST", 8 * 60 * 60) + var FormatLayout = "2006-01-02" + var Json = jsoniter.ConfigCompatibleWithStandardLibrary + var TimeLayout = `2006-01-02 15:04:05` + var TimestampUnixZero = Timestamp(time.Unix(0, 0)) + var TimestampZero = Timestamp(time.Time{}) + func JSONScan(dbValue interface{}, value interface{}) error + func JSONValue(value interface{}) (driver.Value, error) + type ErrorResp struct + Result string + type IDMgr struct + func NewIdMgr(node uint16) (*IDMgr, error) + func (c *IDMgr) ID() int64 + func (c *IDMgr) IDToString() string + type IGenID interface + ID func() int64 + IDToString func() string + type Timestamp time.Time + func ParseTimestampFromString(s string) (dt Timestamp, err error) + func ParseTimestampFromStringWithLayout(input, layout string) (Timestamp, error) + func (Timestamp) DataType(engine string) string + func (dt *Timestamp) Scan(value interface{}) error + func (dt *Timestamp) UnmarshalText(data []byte) (err error) + func (dt Timestamp) Format(layout string) string + func (dt Timestamp) In(loc *time.Location) Timestamp + func (dt Timestamp) IsZero() bool + func (dt Timestamp) MarshalText() ([]byte, error) + func (dt Timestamp) String() string + func (dt Timestamp) Unix() int64 + func (dt Timestamp) Value() (driver.Value, error)