enums

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OneSecond   = 1
	TwoSecond   = 2
	ThreeSecond = 3
	FiveSecond  = 5
	TenSecond   = 10
	HalfMinute  = 30

	OneMinute   = 60 * OneSecond
	TwoMinute   = 2 * OneMinute
	ThreeMinute = 3 * OneMinute
	FiveMinute  = 5 * OneMinute
	TenMinute   = 10 * OneMinute
	HalfHour    = 30 * OneMinute

	OneHour    = 60 * OneMinute
	TwoHour    = 2 * OneHour
	SixHour    = 6 * OneHour
	TwelveHour = 12 * OneHour

	HalfDay = TwelveHour
	OneDay  = 24 * OneHour
)

常用时间 以下时间都是以秒为单位

View Source
const (
	OneSecDur   = time.Duration(1) * time.Second
	ThreeSecDur = time.Duration(3) * time.Second
	FiveSecDur  = time.Duration(5) * time.Second
	TenSecDur   = time.Duration(10) * time.Second
	HalfMinDur  = time.Duration(30) * time.Second

	OneMinDur   = time.Duration(1) * time.Minute
	ThreeMinDur = time.Duration(3) * time.Minute
	FiveMinDur  = time.Duration(5) * time.Minute
	TenMinDur   = time.Duration(10) * time.Minute
	HalfHourDur = time.Duration(30) * time.Minute

	OneHourDur = time.Duration(1) * time.Hour
	SixHourDur = time.Duration(6) * time.Hour
	HalfDayDur = time.Duration(12) * time.Hour

	OneDayDur = time.Duration(24) * time.Hour
)

常用时间 以下时间都是以time.Duration为单位

View Source
const BJ = "Asia/Shanghai"

Variables

This section is empty.

Functions

This section is empty.

Types

type DBType

type DBType int
const (
	Mysql DBType = iota + 1
	Postgresql
	Sqlite
)

func (DBType) Desc

func (dbType DBType) Desc() string

Desc 描述

Jump to

Keyboard shortcuts

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