package
Version:
v1.0.14
Opens a new window with list of versions in this module.
Published: Aug 11, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
EnvLocal = "local"
EnvProd = "prod"
)
type App struct {
Env string `yaml:"Env"`
Log string `yaml:"Log"`
}
type Bs struct {
Server *Server `yaml:"Server"`
Data *Data `yaml:"Data"`
App *App `yaml:"App"`
}
func Load(env string, flagPort, flagEnv, flagDir, flagPprofPort, flagLog string) (bs Bs, err error)
type Data struct {
StorageDir string `yaml:"StorageDir"`
}
type Server struct {
Port string `yaml:"Port"`
Port2 string `yaml:"Port2"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.