2021-09-24 00:45:52 +03:00
|
|
|
package json
|
|
|
|
|
|
|
|
import (
|
2021-10-25 20:24:40 +03:00
|
|
|
codec "go.unistack.org/micro/v3/codec"
|
2021-09-24 00:45:52 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type unmarshalOptionsKey struct{}
|
|
|
|
|
|
|
|
func UnmarshalOptions(o JsonUnmarshalOptions) codec.Option {
|
|
|
|
return codec.SetOption(unmarshalOptionsKey{}, o)
|
|
|
|
}
|
|
|
|
|
|
|
|
type marshalOptionsKey struct{}
|
|
|
|
|
|
|
|
func MarshalOptions(o JsonMarshalOptions) codec.Option {
|
|
|
|
return codec.SetOption(marshalOptionsKey{}, o)
|
|
|
|
}
|