array

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Overview

Package array implements an interface slice data structure that produces JSON as its string/byte string output.

Note that strings found in the object are automatically escaped as per RFC8259 with a function that avoids more than one memory allocation for the buffer rewrite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arrayer

type Arrayer interface {
	ToArray() T
}

Arrayer is an interface for a type that can return an array.T - or in other words []interface{} made into concrete.

type T

type T []interface{}

func (T) Buffer

func (t T) Buffer() *bytes.Buffer

func (T) Bytes

func (t T) Bytes() []byte

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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