go-json/option.go

11 lines
164 B
Go
Raw Permalink Normal View History

2020-09-16 12:23:43 +03:00
package json
type EncodeOption func(*Encoder) error
func UnorderedMap() EncodeOption {
return func(e *Encoder) error {
e.unorderedMap = true
return nil
}
}