syncbuf

package
v0.11.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 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 SyncBuffer

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

func MakeSyncBuffer

func MakeSyncBuffer() *SyncBuffer

func MakeSyncBufferFromReader

func MakeSyncBufferFromReader(r io.Reader) *SyncBuffer

spawns a goroutine to copy the reader to the buffer

func (*SyncBuffer) String

func (s *SyncBuffer) String() string

func (*SyncBuffer) Write

func (s *SyncBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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