fields

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date time.Time

func (Date) MarshalJSON

func (j Date) MarshalJSON() ([]byte, error)

type DateTime

type DateTime time.Time

func (DateTime) MarshalJSON

func (j DateTime) MarshalJSON() ([]byte, error)

type SecTime

type SecTime struct {
	time.Time
}

SecTime format json time field by myself

func (SecTime) MarshalJSON

func (t SecTime) MarshalJSON() ([]byte, error)

MarshalJSON on JSONTime format Time field with %Y-%m-%d %H:%M:%S

func (*SecTime) Scan

func (t *SecTime) Scan(v interface{}) error

Scan valueof time.Time

func (SecTime) Value

func (t SecTime) Value() (driver.Value, error)

Value insert timestamp into mysql need this function.

Jump to

Keyboard shortcuts

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