package gutil

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

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

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

Source Files

post_ioutil.go

Version
v1.37.0 (latest)
Published
Apr 2, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
10 hours ago

Tools for package owners.