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 ¶
- func MkdirTemp(dir, pattern string) (string, error)
- func NopCloser(r io.Reader) io.ReadCloser
- func ReadAll(r io.Reader) ([]byte, error)
- func ReadDir(dirname string) ([]string, error)
- func ReadFile(filename string) ([]byte, error)
- func WriteFile(filename string, data []byte) error
Functions ¶
func MkdirTemp ¶
func NopCloser ¶
func NopCloser(r io.Reader) io.ReadCloser
func ReadAll ¶
func ReadDir ¶
func ReadFile ¶
func WriteFile ¶
Source Files ¶
- Version
- v1.37.0 (latest)
- Published
- Apr 2, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 10 hours ago –
Tools for package owners.