kratos: Index | Files

package codec

import ""


Package Files


type JSON Uses

type JSON struct {

JSON is impl of encoding.Codec

func (JSON) Marshal Uses

func (j JSON) Marshal(v interface{}) (out []byte, err error)

Marshal is json marshal

func (JSON) Name Uses

func (j JSON) Name() string

Name is name of JSON

func (JSON) Unmarshal Uses

func (j JSON) Unmarshal(data []byte, v interface{}) (err error)

Unmarshal is json unmarshal

Package codec imports 5 packages (graph) and is imported by 2 packages. Updated 2020-04-23. Refresh now. Tools for package owners.