format

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MakeLineWriter = NewLineWriter

Functions

func MakeDelimReaderConsumeEmpty

func MakeDelimReaderConsumeEmpty(
	delim byte,
	rffs schnittstellen.FuncSetString,
) io.ReaderFrom

func MakeFormatString

func MakeFormatString(
	f string,
	vs ...interface{},
) schnittstellen.FuncWriter

func MakeFormatStringRightAligned

func MakeFormatStringRightAligned(
	f string,
	args ...any,
) schnittstellen.FuncWriter

func MakeLineReaderConsumeEmpty

func MakeLineReaderConsumeEmpty(
	rffs schnittstellen.FuncSetString,
) io.ReaderFrom

func MakeLineReaderPassThruEmpty

func MakeLineReaderPassThruEmpty(
	rffs schnittstellen.FuncSetString,
) io.ReaderFrom

func MakeReaderFrom

func MakeReaderFrom[T any](
	rf schnittstellen.FuncReaderFormat[T],
	e *T,
) io.ReaderFrom

func MakeReaderFromInterface

func MakeReaderFromInterface[T any](
	rf schnittstellen.FuncReaderFormatInterface[T],
	e T,
) io.ReaderFrom

func MakeStringer

func MakeStringer(
	v fmt.Stringer,
) schnittstellen.FuncWriter

func MakeWriter

func MakeWriter[T any](
	wff schnittstellen.FuncWriterFormat[T],
	e T,
) schnittstellen.FuncWriter

func MakeWriterOr

func MakeWriterPtr

func MakeWriterPtr[T any](
	wff schnittstellen.FuncWriterFormat[*T],
	e *T,
) schnittstellen.FuncWriter

func MakeWriterTo2

func MakeWriterTo2[T any](
	wf schnittstellen.FuncWriterElement[T],
	e *T,
) *writerTo[T]

func MakeWriterToInterface

func MakeWriterToInterface[T any](
	wf schnittstellen.FuncWriterElementInterface[T],
	e T,
) writerToInterface[T]

func ReadLines

func ReadLines(
	r1 io.Reader,
	rffs schnittstellen.FuncSetString,
) (n int64, err error)

func ReadSep

func ReadSep(
	delim byte,
	r1 io.Reader,
	rffs schnittstellen.FuncSetString,
) (n int64, err error)

func Write

func Write(
	w io.Writer,
	wffs ...schnittstellen.FuncWriter,
) (n int64, err error)

Types

type LineWriter

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

func NewLineWriter

func NewLineWriter() *LineWriter

func (*LineWriter) WriteEmpty

func (w *LineWriter) WriteEmpty()

func (*LineWriter) WriteExactlyOneEmpty

func (w *LineWriter) WriteExactlyOneEmpty()

func (*LineWriter) WriteFormat

func (w *LineWriter) WriteFormat(f string, values ...interface{})

func (*LineWriter) WriteFormats

func (w *LineWriter) WriteFormats(f string, values ...interface{})

func (*LineWriter) WriteKeySpaceValue

func (w *LineWriter) WriteKeySpaceValue(key, value interface{})

func (*LineWriter) WriteLines

func (w *LineWriter) WriteLines(ls ...string)

func (*LineWriter) WriteStringers

func (w *LineWriter) WriteStringers(ss ...fmt.Stringer)

func (*LineWriter) WriteTo

func (w *LineWriter) WriteTo(out io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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