output

package
v5.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store it is storage for stdout and stderr data

func NewStore

func NewStore(size int) *Store

func (*Store) Bytes

func (s *Store) Bytes() []byte

Bytes returns data as a byte slice

func (*Store) IsEmpty

func (s *Store) IsEmpty() bool

IsEmpty returns true if container is empty

func (*Store) Purge

func (s *Store) Purge()

Purge clears data

func (*Store) String

func (s *Store) String() string

String return data as a string

func (*Store) Write

func (s *Store) Write(data []byte)

Write writes data into buffer

Jump to

Keyboard shortcuts

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