types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormart = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraMap

type ExtraMap map[string]string

func (*ExtraMap) Scan

func (emap *ExtraMap) Scan(v interface{}) error

func (ExtraMap) Value

func (emap ExtraMap) Value() (driver.Value, error)

type Profile

type Profile string

Profile 定一个表示环境变量的类型

const (
	Profile_Dev Profile = "dev"
	Profile_Pro Profile = "pro"
)

type Time

type Time time.Time

Time is alias type for time.Time

func NowTime

func NowTime() Time

func ParseTimeStr

func ParseTimeStr(layout, value string) (Time, error)

func (Time) AtTime

func (t Time) AtTime(timeStr string) time.Time

func (*Time) Format

func (t *Time) Format(layout string) string

func (Time) IsZero

func (t Time) IsZero() bool

func (Time) MarshalJSON

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

MarshalJSON implements json marshal interface.

func (*Time) Scan

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

Scan valueof time.Time 注意是指针类型 method

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json unmarshal interface.

func (Time) Value

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

Value ...

Jump to

Keyboard shortcuts

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