jsonencdec

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToStructWithJSONTags

func MapToStructWithJSONTags(data map[string]any, out any) error

func StructWithJSONTagsToMap

func StructWithJSONTagsToMap(data any) (map[string]any, error)

Types

type JSONEncoderDecoder

type JSONEncoderDecoder struct{}

func (JSONEncoderDecoder) Decode

func (d JSONEncoderDecoder) Decode(r io.Reader, value any) error

Decode decodes JSON data from the reader into the given value.

func (JSONEncoderDecoder) Encode

func (d JSONEncoderDecoder) Encode(w io.Writer, value any) error

Encode encodes the given value into JSON format and writes it to the writer.

Jump to

Keyboard shortcuts

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