gutil

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gutil is a replacement for ioutil, which should not be used in new code as of Go 1.16. With Go 1.16 and higher, this implementation uses the ioutil replacement functions in "io" and "os" with some Gomega specifics. This means that we should not get deprecation warnings for ioutil when they are added.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirTemp

func MkdirTemp(dir, pattern string) (string, error)

func NopCloser

func NopCloser(r io.Reader) io.ReadCloser

func ReadAll

func ReadAll(r io.Reader) ([]byte, error)

func ReadDir

func ReadDir(dirname string) ([]string, error)

func ReadFile

func ReadFile(filename string) ([]byte, error)

func WriteFile

func WriteFile(filename string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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