models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(t time.Time) time.Time

将time.Time转换成自定义的time.Time

Types

type LocalTime

type LocalTime time.Time

func (LocalTime) MarshalJSON

func (l LocalTime) MarshalJSON() ([]byte, error)

func (LocalTime) MarshalText

func (j LocalTime) MarshalText() ([]byte, error)

func (LocalTime) Now

func (l LocalTime) Now() LocalTime

func (LocalTime) ParseTime

func (l LocalTime) ParseTime(t time.Time) LocalTime

func (LocalTime) String

func (l LocalTime) String() string

func (*LocalTime) ToDB

func (l *LocalTime) ToDB() ([]byte, error)

func (*LocalTime) UnmarshalJSON

func (l *LocalTime) UnmarshalJSON(b []byte) error

func (*LocalTime) Value

func (l *LocalTime) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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