WithVariables 设置自定义变量
(vars map[string]string)
| 44 | |
| 45 | // WithVariables 设置自定义变量 |
| 46 | func WithVariables(vars map[string]string) LoaderOption { |
| 47 | return func(l *Loader) { |
| 48 | l.variables = vars |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | // NewLoader 创建配置加载器 |
| 53 | func NewLoader(opts ...LoaderOption) *Loader { |
no outgoing calls