readall

package
v0.0.0-...-e081c89 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package readall provides an alterative to ioutil.Readall but with support for context.Context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(ctx context.Context, r io.Reader) (b []byte, err error)

ReadAll is a context aware equivalent to ioutils.ReadAll

func WithCancel

func WithCancel(ctx context.Context, cancel context.CancelFunc, r io.Reader) (b []byte, err error)

WithCancel is a context aware equivalent to ioutils.ReadAll

Types

This section is empty.

Jump to

Keyboard shortcuts

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