mrjson

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonDecoder

type JsonDecoder struct {
}

func NewDecoder

func NewDecoder() *JsonDecoder

func (*JsonDecoder) ParseToStruct

func (p *JsonDecoder) ParseToStruct(ctx context.Context, content io.Reader, structPointer any) error

type JsonEncoder

type JsonEncoder struct {
}

func NewEncoder

func NewEncoder() *JsonEncoder

func (*JsonEncoder) ContentType

func (p *JsonEncoder) ContentType() string

func (*JsonEncoder) ContentTypeProblem

func (p *JsonEncoder) ContentTypeProblem() string

func (*JsonEncoder) Marshal

func (p *JsonEncoder) Marshal(structure any) ([]byte, error)

Jump to

Keyboard shortcuts

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