...

Package gutil

import "github.com/onsi/gomega/internal/gutil"
Overview
Index

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.

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