marshaler

package
v0.0.0-20240423 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const OPTION_MARSHALER = "marshaler"
View Source
const OPTION_UNMARSHALER = "unmarshaler"

Variables

This section is empty.

Functions

func ContextWithMarshaler

func ContextWithMarshaler(ctx context.Context, marshaler marshaler_interface.Marshaler) context.Context

func ContextWithMarshalerAndUnmarshaler

func ContextWithMarshalerAndUnmarshaler(ctx context.Context, marshaler marshaler_interface.Marshaler, unmarshaler marshaler_interface.Unmarshaler) context.Context

func ContextWithUnmarshaler

func ContextWithUnmarshaler(ctx context.Context, unmarshaler marshaler_interface.Unmarshaler) context.Context

func Marshal

func Marshal(ctx context.Context, x any) ([]byte, error)

func Unmarshal

func Unmarshal(ctx context.Context, x []byte, y any) error

func WithMarshaler

func WithMarshaler(marshaler marshaler_interface.Marshaler) option.ApplyOption

func WithUnmarshaler

func WithUnmarshaler(unmarshaler marshaler_interface.Unmarshaler) option.ApplyOption

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL