Documentation ¶
Overview ¶
Package file provides file operations
Index ¶
- func AppendContents(path string, content []byte) error
- func Copy(src string, dst string) error
- func Dir(filename string) string
- func Exists(path string) bool
- func GetBinContents(path string) []byte
- func GetContents(path string) string
- func IsExec(filename string) bool
- func Mkdir(fpath string) error
- func PutContents(path string, content []byte) error
- func Remove(path string) error
- func TempDir() string
- func Truncate(path string, size int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendContents ¶
AppendContents append content to give file
func GetBinContents ¶
GetBinContents read file content as bytes
func PutContents ¶
PutContents write content to given file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.