json

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer struct{}

Serializer implements the serialize.Serializer interface

func NewSerializer

func NewSerializer() *Serializer

NewSerializer returns a new Serializer.

func (*Serializer) GetName

func (s *Serializer) GetName() string

GetName returns the name of the serializer.

func (*Serializer) Marshal

func (s *Serializer) Marshal(v interface{}) ([]byte, error)

Marshal returns the JSON encoding of v.

func (*Serializer) Unmarshal

func (s *Serializer) Unmarshal(data []byte, v interface{}) error

Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.

Jump to

Keyboard shortcuts

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