json

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: GPL-3.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 Parser

Parser is the parser implementation for JSON encoding and decoding

func NewParser

func NewParser(
	decoder *gonethttprequestjson.Decoder,
	encoder *gonethttpresponsejson.Encoder,
) (*Parser, error)

NewParser creates a new JSON parser

Parameters:

  • decoder: the JSON decoder
  • encoder: the JSON encoder

Returns:

  • *Parser: the created JSON parser
  • error: the error if any

type StreamParser

StreamParser is the parser implementation for streaming JSON encoding and decoding

func NewStreamParser

NewStreamParser creates a new JSON stream parser

Parameters:

  • decoder: the JSON stream decoder
  • encoder: the JSON stream encoder

Returns:

  • *StreamParser: the created JSON stream parser
  • error: the error if any

Jump to

Keyboard shortcuts

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