util

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPEND_BUF_SIZE = 32 * 1024
)

Variables

This section is empty.

Functions

func NewBufferedAppendWriter

func NewBufferedAppendWriter(path string) *bufio.Writer

Types

type AppendWriter

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

func NewAppendWriter

func NewAppendWriter(path string) *AppendWriter

func (*AppendWriter) Write

func (wr *AppendWriter) Write(p []byte) (int, error)

type FileWrapper

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

func NewFileWrapper

func NewFileWrapper(r io.ReadCloser) *FileWrapper

func (*FileWrapper) Close

func (fw *FileWrapper) Close() error

func (*FileWrapper) Read

func (fw *FileWrapper) Read(p []byte) (int, error)

type StringSet

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

func NewStringSet

func NewStringSet() *StringSet

func StringSetFromSlice

func StringSetFromSlice(elems []string) *StringSet

func (*StringSet) Add

func (s *StringSet) Add(elem string)

func (*StringSet) Count

func (s *StringSet) Count() int

func (*StringSet) Delete

func (s *StringSet) Delete(elem string)

func (*StringSet) Has

func (s *StringSet) Has(elem string) bool

Jump to

Keyboard shortcuts

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