json

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 11

Documentation

Overview

Package json

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalIndent

func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)

func NewDecoder

func NewDecoder(r io.Reader) *jsoniter.Decoder

func Unmarshal

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

Types

type Codec

type Codec struct {
}

func NewCodec

func NewCodec() *Codec

func (*Codec) Decode

func (c *Codec) Decode(data []byte, structPrt interface{}) error

func (*Codec) Encode

func (c *Codec) Encode(v interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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