Go: cmd/internal/bio Index | Files

package bio

import "cmd/internal/bio"

Package bio implements common I/O abstractions used within the Go toolchain.

Index

Package Files

buf.go must.go

func MustClose Uses

func MustClose(c io.Closer)

MustClose closes Closer c and calls log.Fatal if it returns a non-nil error.

func MustWriter Uses

func MustWriter(w io.Writer) io.Writer

MustWriter returns a Writer that wraps the provided Writer, except that it calls log.Fatal instead of returning a non-nil error.

type Reader Uses

type Reader struct {
    *bufio.Reader
    // contains filtered or unexported fields
}

Reader implements a seekable buffered io.Reader.

func Open Uses

func Open(name string) (*Reader, error)

Open returns a Reader for the file named name.

func (*Reader) Close Uses

func (r *Reader) Close() error

func (*Reader) Offset Uses

func (r *Reader) Offset() int64

func (*Reader) Seek Uses

func (r *Reader) Seek(offset int64, whence int) int64

type Writer Uses

type Writer struct {
    *bufio.Writer
    // contains filtered or unexported fields
}

Writer implements a seekable buffered io.Writer.

func Create Uses

func Create(name string) (*Writer, error)

Create creates the file named name and returns a Writer for that file.

func (*Writer) Close Uses

func (w *Writer) Close() error

func (*Writer) Offset Uses

func (w *Writer) Offset() int64

func (*Writer) Seek Uses

func (w *Writer) Seek(offset int64, whence int) int64

Package bio imports 4 packages (graph) and is imported by 6 packages. Updated 2017-08-25. Refresh now. Tools for package owners.