Documentation ¶ Index ¶ type Env func New(s string) Env func (e Env) IsDev() bool func (e Env) IsLocal() bool func (e Env) IsProduction() bool func (e Env) IsStaging() bool func (e Env) IsTest() bool func (e Env) Valid() bool type Info func NewInfo(server, version string, buildAt int64, envv Env) Info Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Env ¶ type Env string const ( Local Env = "local" Dev Env = "dev" Test Env = "test" Staging Env = "staging" Production Env = "production" ) func New ¶ func New(s string) Env func (Env) IsDev ¶ func (e Env) IsDev() bool func (Env) IsLocal ¶ func (e Env) IsLocal() bool func (Env) IsProduction ¶ func (e Env) IsProduction() bool func (Env) IsStaging ¶ func (e Env) IsStaging() bool func (Env) IsTest ¶ func (e Env) IsTest() bool func (Env) Valid ¶ func (e Env) Valid() bool type Info ¶ type Info struct { Server string Version string BuildAt int64 Envv Env } func NewInfo ¶ func NewInfo(server, version string, buildAt int64, envv Env) Info Source Files ¶ View all Source files env.go info.go Click to show internal directories. Click to hide internal directories.