ioutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeWriter

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

SafeWriter is a thread-safe wrapper for io.Writer

func NewSafeWriter

func NewSafeWriter(writer io.Writer) (*SafeWriter, error)

NewSafeWriter creates and returns a new SafeWriter

func (*SafeWriter) Write

func (sw *SafeWriter) Write(p []byte) (n int, err error)

Write implements the io.Writer interface in a thread-safe manner

Jump to

Keyboard shortcuts

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