Documentation ¶
Index ¶
- func Format(data []byte, prefix, indent string) []byte
- func Fprint(f io.Writer, data any) error
- func IterFprint(f io.Writer, data any) (err error)
- func IterPrint(data any) error
- func Marshal(arg any) ([]byte, error)
- func MarshalIndent(arg any, prefix, indent string) (data []byte, err error)
- func Print(data any) error
- func Println(data any) error
- type Encoder
- type FormatReader
- type FormatWriter
- type Formatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) SetEscapeHTML ¶
func (*Encoder) SetNewlines ¶
type FormatReader ¶
func NewFormatReader ¶
func NewFormatReader(reader io.Reader, prefix, indent string) (f *FormatReader)
type FormatWriter ¶
func NewFormatWriter ¶
func NewFormatWriter(dst io.Writer, prefix, indent string) (w *FormatWriter)
func (*FormatWriter) WriteByte ¶
func (w *FormatWriter) WriteByte(b byte) error
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func NewFormatter ¶
Click to show internal directories.
Click to hide internal directories.