13 lines
319 B
Go
13 lines
319 B
Go
package config
|
|
|
|
import ck "go.maximumdirect.net/configkit"
|
|
|
|
func Load(input ck.Input, overlay string, overrides ...ck.Override) (*ck.Result[Config], error) {
|
|
input.Imports = true
|
|
return ck.LoadLayered(input, ck.LayeredOptions[Config]{
|
|
Definition: Definition(),
|
|
Overlay: overlay,
|
|
Overrides: overrides,
|
|
})
|
|
}
|