1 Star 0 Fork 0

蒙蒙的男孩/eosc

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
args.go 305 Bytes
Copy Edit Raw Blame History
蒙蒙的男孩 authored 2024-01-10 11:57 . 0.15.2
package env
func GetDefaultArg(cfg *Config, name string, value string) string {
vl, has := GetEnv(name)
if has {
return vl
}
return cfg.GetDefault(name, value)
}
func GetArg(cfg *Config, name string) (string, bool) {
vl, has := GetEnv(name)
if has {
return vl, true
}
return cfg.Get(name)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/meng_mengs_boys/eosc.git
git@gitee.com:meng_mengs_boys/eosc.git
meng_mengs_boys
eosc
eosc
v1.15.6

Search