iox

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indent

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

func NewIndent

func NewIndent(step int) *Indent

func (*Indent) Curr

func (i *Indent) Curr() string

func (*Indent) Next

func (i *Indent) Next() *Indent

type LineWriter added in v0.5.7

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

func (*LineWriter) WriteString added in v0.5.7

func (w *LineWriter) WriteString(s string)

type StringWriter added in v0.5.7

type StringWriter interface {
	WriteString(s string)
}

type Writer

type Writer interface {
	WriteString(s string)
	WriteNewLine()
	String() string
	Bytes() []byte

	IncIndent() Writer
	WithoutIndent() Writer
	Len() int

	Line() *LineWriter
}

func NewWriter

func NewWriter() Writer

func NewWriterWithIndent added in v0.5.7

func NewWriterWithIndent(indent *Indent) Writer

Jump to

Keyboard shortcuts

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