mirror of https://github.com/goccy/go-json.git
22 lines
345 B
Go
22 lines
345 B
Go
package json
|
|
|
|
import (
|
|
"github.com/goccy/go-json/internal/encoder"
|
|
)
|
|
|
|
type EncodeOption = encoder.Option
|
|
|
|
type EncodeOptionFunc func(*EncodeOption)
|
|
|
|
func UnorderedMap() EncodeOptionFunc {
|
|
return func(opt *EncodeOption) {
|
|
opt.UnorderedMap = true
|
|
}
|
|
}
|
|
|
|
func Debug() EncodeOptionFunc {
|
|
return func(opt *EncodeOption) {
|
|
opt.Debug = true
|
|
}
|
|
}
|