encoding

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffered

type Buffered interface {
	Bytes() []byte
	String() string
}

type BufferedJsonEncoder

type BufferedJsonEncoder interface {
	JsonEncoder
	Buffered
}

func NewBufferedJsonEncoder

func NewBufferedJsonEncoder() BufferedJsonEncoder

type BufferedTextEncoder

type BufferedTextEncoder interface {
	TextEncoder
	Buffered
}

func NewBufferedTextEncoder

func NewBufferedTextEncoder() BufferedTextEncoder

type JsonEncoder

type JsonEncoder interface {
	TextEncoder

	WriteKeyValue(k string, v interface{}) error
	WriteKeyValueChecked(k string, v interface{}) func() error

	WriteValue(v interface{}) error
	WriteValueChecked(v interface{}) func() error
}

type TextEncoder

type TextEncoder interface {
	io.ByteWriter
	WriteByteChecked(byte) func() error

	WriteBytes([]byte) error
	WriteBytesChecked([]byte) func() error

	WriteString(string) error
	WriteStringChecked(string) func() error
	WriteStringPChecked(*string) func() error
}

Jump to

Keyboard shortcuts

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