mirror of
1
Fork 0
gotosocial/vendor/github.com/goccy/go-json/option.go

16 lines
346 B
Go

package json
type EncodeOptionFunc func(EncodeOption) EncodeOption
func UnorderedMap() func(EncodeOption) EncodeOption {
return func(opt EncodeOption) EncodeOption {
return opt | EncodeOptionUnorderedMap
}
}
func Debug() func(EncodeOption) EncodeOption {
return func(opt EncodeOption) EncodeOption {
return opt | EncodeOptionDebug
}
}