marshal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonMarshaller

type JsonMarshaller struct{}

func (*JsonMarshaller) Marshal

func (m *JsonMarshaller) Marshal(data UnmarshalledData) (*string, error)

func (*JsonMarshaller) Unmarshal

func (m *JsonMarshaller) Unmarshal(data string, v UnmarshalledData) error

type Marshaller

type Marshaller interface {
	Marshal(data UnmarshalledData) (*string, error)
	Unmarshal(data string, v UnmarshalledData) error
}

func NewMarshaller

func NewMarshaller(format string) (Marshaller, error)

type UnmarshalledData

type UnmarshalledData = map[string]interface{}

func NewUnmarshalResult

func NewUnmarshalResult() UnmarshalledData

type YamlMarshaller

type YamlMarshaller struct{}

func (*YamlMarshaller) Marshal

func (m *YamlMarshaller) Marshal(data UnmarshalledData) (*string, error)

func (*YamlMarshaller) Unmarshal

func (m *YamlMarshaller) Unmarshal(data string, v UnmarshalledData) error

Jump to

Keyboard shortcuts

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