mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-08 06:09:49 +00:00
upgrade to yaml.v3 (#1148)
* upgrade to yaml.v3 The main nice fix here is that maps unmarshal into `map[string]any` instead of `map[any]any`, so it cleans things up a bit. * add config.AsBool Since yaml.v3 doesn't automatically convert yes to bool now, for backwards compat * use type aliases for m * more cleanup * more cleanup * more cleanup * go mod cleanup
This commit is contained in:
parent
75faa5f2e5
commit
879852c32a
36 changed files with 257 additions and 258 deletions
|
|
@ -17,7 +17,7 @@ func (he *helpError) Error() string {
|
|||
return he.s
|
||||
}
|
||||
|
||||
func newHelpErrorf(s string, v ...interface{}) error {
|
||||
func newHelpErrorf(s string, v ...any) error {
|
||||
return &helpError{s: fmt.Sprintf(s, v...)}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue