memorywriter

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: LGPL-3.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryWriter

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

func New

func New(size int, startSize int, printTime bool, out io.Writer) *MemoryWriter

func (*MemoryWriter) Gzip

func (m *MemoryWriter) Gzip(start string) ([]byte, error)

Gzip exports as GZip bytes

func (*MemoryWriter) Log

func (m *MemoryWriter) Log(s string)

func (*MemoryWriter) String

func (m *MemoryWriter) String(start string) (string, error)

String exports as string

func (*MemoryWriter) Write

func (m *MemoryWriter) Write(p []byte) (int, error)

Writer remembers lines in memory

Jump to

Keyboard shortcuts

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