file

package
v0.1.9 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 Exists added in v0.1.9

func Exists(path string) bool

func Read added in v0.1.9

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

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

func ReadString added in v0.1.9

func ReadString(filename string) (string, error)

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

func Write added in v0.1.9

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

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

func WriteString added in v0.1.9

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

WriteString 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