jsonbuilder

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	// contains filtered or unexported fields
}

Array is a builder for building JSON array.

func NewArray

func NewArray() *Array

func (*Array) Append

func (a *Array) Append(v any) error

func (*Array) Build

func (a *Array) Build() ([]byte, error)

func (*Array) Sort

func (a *Array) Sort()

type Dict

type Dict struct {
	// contains filtered or unexported fields
}

Dict is a builder for building JSON dictionary.

func NewDict

func NewDict() *Dict

func (*Dict) Build

func (d *Dict) Build() ([]byte, error)

func (*Dict) Sort

func (a *Dict) Sort()

func (*Dict) Store

func (d *Dict) Store(key, value any) error

Jump to

Keyboard shortcuts

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