mrjson

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 4 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(r *http.Request, 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