squadron/init.go
2023-09-21 10:25:54 +02:00

16 lines
412 B
Go

package squadron
import (
"github.com/miracl/conflate"
yamlv2 "gopkg.in/yaml.v2"
)
func init() {
yamlv2.FutureLineWrap()
// define the unmarshallers for the given file extensions, blank extension is the global unmarshaller
conflate.Unmarshallers = conflate.UnmarshallerMap{
".yaml": conflate.UnmarshallerFuncs{conflate.YAMLUnmarshal},
".yml": conflate.UnmarshallerFuncs{conflate.YAMLUnmarshal},
}
}