Help us shape the future of Go! Take the 2026 Go Developer Survey

ioutil

package
v0.11.11 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 3 Imported by: 1

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