Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SettingModule = fx.Provide( func() (out AppResult, err error) { err = out.LoadFromEnv() return }, )
Functions ¶
This section is empty.
Types ¶
type AppResult ¶
type AppResult struct { fx.Out AppName string `name:"AppName" envconfig:"APP_NAME" default:"app"` AppId string `name:"AppId" envconfig:"APP_ID" default:"app"` Deployment string `name:"Deployment" envconfig:"DEPLOYMENT" default:"local"` Version string `name:"Version" default:"0.0.2"` }
func (*AppResult) LoadConstant ¶
func (*AppResult) LoadFromEnv ¶
Click to show internal directories.
Click to hide internal directories.