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

ioutil

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ioutil pkg/dmsg/ioutil/buf_read.go c1-net-dmsg

Package ioutil pkg/dmsg/ioutil/close.go c1-net-dmsg

Package ioutil pkg/dmsg/ioutil/logging.go c1-net-dmsg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufRead

func BufRead(buf *bytes.Buffer, data, p []byte) (int, error)

BufRead is designed to help writing 'io.Reader' implementations. It reads from 'data' into 'p'. If 'p' is short, write to 'buf'. Note that one should check if 'buf' has data and read from that first before calling this function.

func CloseQuietly

func CloseQuietly(c io.Closer, log *logging.Logger)

CloseQuietly closes c, logging any error at debug level. Use this for deferred Close() calls where the error is not actionable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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