common

package
v0.0.0-...-cd9cbe6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToQueryByJsonTag

func ToQueryByJsonTag(ptr interface{}) (query string, err error)

func ToQueryByTag

func ToQueryByTag(ptr interface{}, tag string) (query string, err error)

Types

type UTCTime

type UTCTime struct {
	time.Time
}

func NewUTCTime

func NewUTCTime(t time.Time) UTCTime

func (*UTCTime) IsEmpty

func (t *UTCTime) IsEmpty() bool

func (UTCTime) MarshalJSON

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

func (*UTCTime) Scan

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

func (*UTCTime) String

func (t *UTCTime) String() string

func (*UTCTime) UnmarshalJSON

func (t *UTCTime) UnmarshalJSON(data []byte) error

func (UTCTime) Value

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

func (*UTCTime) YearMonthDate

func (t *UTCTime) YearMonthDate() string

Jump to

Keyboard shortcuts

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