ioutil

package
v0.0.0-...-8cba18c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 1 Imported by: 0

README

go-common/ioutil

This repository contains the go-common/ioutil library.

To install:

go get github.com/ugorji/go-common/ioutil

Package Documentation

Package ioutil provides input/output utilities.

Exported Package API

type BufReader struct{ ... }
    func NewBufReader(r io.Reader, b []byte) (br *BufReader)
type BufWriter struct{ ... }
    func NewBufWriter(w io.Writer, b []byte) (bw *BufWriter)

Documentation

Overview

Package ioutil provides input/output utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufReader

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

BufReader is not safe for concurrent use.

func NewBufReader

func NewBufReader(r io.Reader, b []byte) (br *BufReader)

func (*BufReader) Read

func (b *BufReader) Read(bs []byte) (r int, err error)

func (*BufReader) ReadN

func (b *BufReader) ReadN(n int) (bs []byte, err error)

type BufWriter

type BufWriter struct {
	W io.Writer
	// contains filtered or unexported fields
}

BufWriter is not safe for concurrent use.

func NewBufWriter

func NewBufWriter(w io.Writer, b []byte) (bw *BufWriter)

func (*BufWriter) Flush

func (b *BufWriter) Flush() (err error)

func (*BufWriter) Write

func (b *BufWriter) Write(bs []byte) (w int, err error)

Jump to

Keyboard shortcuts

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