Documentation
¶
Index ¶
- func AppendText(filepath, text string) error
- func CreateTemp(prefix string) (string, error)
- func Delete(filepath string) error
- func Exists(filepath string) bool
- func ReadAllBytes(filepath string) ([]byte, error)
- func ReadAllLines(filepath string) ([]string, error)
- func ReadAllText(filepath string) (string, error)
- func Rename(oldPath, newPath string) error
- func WriteAllText(filepath, text string) error
- func WriteBytes(filepath string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendText ¶
func CreateTemp ¶
CreateTemp creates a temporary file and returns its name.
func ReadAllBytes ¶
reads the entire file content as a byte array.
func ReadAllLines ¶
func ReadAllText ¶
reads the entire file content as a text string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.