builder

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringBuilder

type StringBuilder struct {
	ib.Buffer
}

StringBuilder accumulates strings with optional redaction markers.

It implements io.Writer but marks direct writes as redactable. To distinguish safe and unsafe bits, it also implements the SafeWriter interface.

func (*StringBuilder) Print

func (b *StringBuilder) Print(args ...interface{})

Print is part of the SafeWriter interface.

func (*StringBuilder) Printf

func (b *StringBuilder) Printf(format string, args ...interface{})

Printf is part of the SafeWriter interface.

func (*StringBuilder) SafeFloat

func (b *StringBuilder) SafeFloat(s i.SafeFloat)

SafeFloat is part of the SafeWriter interface.

func (StringBuilder) SafeFormat

func (b StringBuilder) SafeFormat(p i.SafePrinter, _ rune)

SafeFormat implements SafeFormatter.

func (*StringBuilder) SafeInt

func (b *StringBuilder) SafeInt(s i.SafeInt)

SafeInt is part of the SafeWriter interface.

func (*StringBuilder) SafeRune

func (b *StringBuilder) SafeRune(s i.SafeRune)

SafeRune is part of the SafeWriter interface.

func (*StringBuilder) SafeString

func (b *StringBuilder) SafeString(s i.SafeString)

SafeString is part of the SafeWriter interface.

func (*StringBuilder) SafeUint

func (b *StringBuilder) SafeUint(s i.SafeUint)

SafeUint is part of the SafeWriter interface.

func (*StringBuilder) UnsafeByte

func (b *StringBuilder) UnsafeByte(s byte)

UnsafeByte is part of the SafeWriter interface.

func (*StringBuilder) UnsafeBytes

func (b *StringBuilder) UnsafeBytes(s []byte)

UnsafeBytes is part of the SafeWriter interface.

func (*StringBuilder) UnsafeRune

func (b *StringBuilder) UnsafeRune(s rune)

UnsafeRune is part of the SafeWriter interface.

func (*StringBuilder) UnsafeString

func (b *StringBuilder) UnsafeString(s string)

UnsafeString is part of the SafeWriter interface.

func (*StringBuilder) Write

func (b *StringBuilder) Write(s []byte) (int, error)

Write implements the io.Writer interface.

func (*StringBuilder) WriteByte added in v1.1.4

func (b *StringBuilder) WriteByte(c byte) error

WriteByte shadows the ib.Buffer.WriteByte method.

func (*StringBuilder) WriteRune added in v1.1.4

func (b *StringBuilder) WriteRune(r rune) error

WriteRune shadows the ib.Buffer.WriteRune method.

func (*StringBuilder) WriteString added in v1.1.4

func (b *StringBuilder) WriteString(s string) (int, error)

WriteString shadows the ib.Buffer.WriteString method.

Jump to

Keyboard shortcuts

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