constant

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 56

Documentation

Index

Constants

View Source
const (
	EmptyString            = ""
	SpaceString            = " "
	CRLFString             = "\n"
	CommaString            = ","
	AsteriskString         = "*"
	DotString              = "."
	VerticalBarString      = "|"
	ColonString            = ":"
	SemicolonString        = ";"
	LeftParenthesis        = "("
	RightParenthesisString = ")"
	LeftBracketString      = "["
	RightBracketString     = "]"
	SlashString            = "/"
	BackSlashString        = "\\"
	DashString             = "-"
	UnderBarString         = "_"

	GOOSLinux                           = "linux"
	GOOSDarwin                          = "darwin"
	GOOSWindows                         = "windows"
	DefaultFileMode         os.FileMode = 0644
	DefaultExecFileMode     os.FileMode = 0755
	DefaultKillSignal                   = 15
	DefaultNormalExitCode               = 0
	DefaultAbnormalExitCode             = 1
	MaxPercentage                       = 100
	ZeroInt                             = 0
	MinUInt                 uint        = 0
	MaxUInt                             = ^uint(0)
	MaxInt                              = int(^uint(0) >> 1)
	MinInt                              = ^MaxInt
	MinPort                             = 1
	MaxPort                             = 65535
	RootDir                             = "/"
	CurrentDir                          = "./"
	DefaultRandomString                 = "sadfio3mj23gsk9lj8ou"
	DefaultRandomInt                    = 2053167498
	DefaultRandomFloat      float64     = DefaultRandomInt
	TrueString                          = "true"
	FalseString                         = "false"
	DefaultRandomTimeString             = "9999-07-02 09:55:32.346082"
	TimeLayoutSecond                    = "2006-01-02 15:04:05"
	TimeLayoutMicrosecond               = "2006-01-02 15:04:05.999999"
	DefaultTimeLayout                   = TimeLayoutMicrosecond
	Day                                 = 24 * time.Hour
	Week                                = 7 * Day
	DefaultMarshalTag                   = DefaultJSONTag
	DefaultJSONTag                      = "json"
	DefaultMiddlewareTag                = "middleware"
	DefaultListenIP                     = "0.0.0.0"
	DefaultLocalHostName                = "localhost"
	DefaultLocalHostIP                  = "127.0.0.1"
	DefaultMySQLPort                    = 3306
	DefaultRootUserName                 = "root"
	DefaultRootUserPass                 = "root"
)

Variables

View Source
var DefaultRandomTime = GetDefaultRandomTime()

Functions

func GetDefaultRandomTime added in v0.2.25

func GetDefaultRandomTime() time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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