mrjson

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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{}

JsonDecoder - comment struct.

func NewDecoder

func NewDecoder() *JsonDecoder

NewDecoder - создаёт объект JsonDecoder.

func (*JsonDecoder) ParseToStruct

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

ParseToStruct - comment method.

type JsonEncoder

type JsonEncoder struct{}

JsonEncoder - comment struct.

func NewEncoder

func NewEncoder() *JsonEncoder

NewEncoder - создаёт объект JsonEncoder.

func (*JsonEncoder) ContentType

func (p *JsonEncoder) ContentType() string

ContentType - comment method.

func (*JsonEncoder) ContentTypeProblem

func (p *JsonEncoder) ContentTypeProblem() string

ContentTypeProblem - comment method.

func (*JsonEncoder) Marshal

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

Marshal - comment method.

Jump to

Keyboard shortcuts

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