Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvProd = "prod" EnvPre = "pre" EnvTest = "test" EnvDev = "dev" )
allowed app env name
View Source
const ( Timezone = "PRC" BaseDate = "2006-01-02 15:04:05" Timeout = 10 PageSize = 20 PageSizeStr = "20" MaxPageSize = 100 ConfigSuffix = ".toml" )
for application
View Source
const RFC3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00"
View Source
const RFC3339Normal = "2006-01-02 15:04:05"
View Source
const RFC3339Shorted = "2006/01/02 15:04:05"
Variables ¶
View Source
var ( EnvName = "dev" Name = "go-web-skeleton" Debug bool Hostname string RootPath string GitInfo model.GitInfo HttpPort = 9440 // AbsPath always return abs path. AbsPath = helper.GetRootPath() )
application info
View Source
var WorkDir, _ = os.Getwd()
the app work dir path
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.