nano: github.com/lonnng/nano/serialize/json Index | Files

package json

import "github.com/lonnng/nano/serialize/json"

Index

Package Files

json.go

type Serializer Uses

type Serializer struct{}

Serializer implements the serialize.Serializer interface

func NewSerializer Uses

func NewSerializer() *Serializer

NewSerializer returns a new Serializer.

func (*Serializer) Marshal Uses

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

Marshal returns the JSON encoding of v.

func (*Serializer) Unmarshal Uses

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.

Package json imports 1 packages (graph). Updated 2019-07-23. Refresh now. Tools for package owners.