micro-codec-json/options.go
Vasiliy Tolstov cddee4ddb0 update to latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-22 02:05:09 +03:00

18 lines
365 B
Go

package json
import (
codec "github.com/unistack-org/micro/v3/codec"
)
type unmarshalOptionsKey struct{}
func UnmarshalOptions(o JsonUnmarshalOptions) codec.Option {
return codec.SetOption(unmarshalOptionsKey{}, o)
}
type marshalOptionsKey struct{}
func MarshalOptions(o JsonUnmarshalOptions) codec.Option {
return codec.SetOption(marshalOptionsKey{}, o)
}