util

package
v1.1.0-beta.0...-9958228 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrBuffer

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

StrBuffer is a basic wrapper bufio.Writer while override its WriteString func.

func (*StrBuffer) Flush

func (sw *StrBuffer) Flush()

Flush implements IBufStrWriter

func (*StrBuffer) WriteString

func (sw *StrBuffer) WriteString(s string)

WriteString implements IBufStrWriter

type StrBufferWriter

type StrBufferWriter interface {
	WriteString(s string)
	Flush()
}

StrBufferWriter is interface facilitate quick writing string regardless of error handling and written len.

func NewStrBuffer

func NewStrBuffer(w io.Writer) StrBufferWriter

NewStrBuffer new a defined buffed string writer with passed io.writer.

Jump to

Keyboard shortcuts

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