file

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesFileExist

func DoesFileExist(path string) bool

func ReadFile

func ReadFile(filename string) (string, error)

ReadFile wraps calls to ioutil.ReadFile, ensuring that errors are wrapped in a stack trace

func ReadFileBytes

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

ReadFileBytes wraps calls to ioutil.ReadFile, ensuring that errors are wrapped in a stack trace

func WriteFile

func WriteFile(filename string, contents string, perm fs.FileMode) error

WriteFile wraps calls to ioutil.WriteFile, ensuring that errors are wrapped in a stack trace

func WriteFileBytes

func WriteFileBytes(filename string, bytes []byte, perm fs.FileMode) error

WriteFileBytes wraps calls to ioutil.WriteFile, ensuring that errors are wrapped in a stack trace

Types

This section is empty.

Jump to

Keyboard shortcuts

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