mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-20 08:01:50 +03:00
16 lines
346 B
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
|
||
|
}
|
||
|
}
|