Documentation ¶
Index ¶
- Constants
- func GetEnv(env string) string
- func GetProperties(envParams ...string) (*properties.Properties, error)
- func GetTestProperties() (props *properties.Properties, err error)
- func NewConfig() (gone.Vampire, gone.GonerId)
- func NewConfigure() (gone.Goner, gone.GonerId)
- func ParseConfAnnotation(tag string) (key string, defaultVal string)
- func Priest(cemetery gone.Cemetery) error
- type Configure
Constants ¶
View Source
const SliceMaxSize = 100
Variables ¶
This section is empty.
Functions ¶
func GetProperties ¶
func GetProperties(envParams ...string) (*properties.Properties, error)
GetProperties 读取环境变量ENV,读取参数 --env 读取配置的目录:程序所在目录,程序运行目录 配置文件读取顺序:config/default.properties,config/${env}.properties,后面的覆盖前面的
func GetTestProperties ¶
func GetTestProperties() (props *properties.Properties, err error)
func ParseConfAnnotation ¶ added in v0.0.22
Types ¶
Click to show internal directories.
Click to hide internal directories.