Documentation ¶
Index ¶
- func AbsolutePath(value string) (string, error)
- func BaseName(filename string) string
- func DirExists(filename string) bool
- func DirName(filename string) string
- func FileExists(name string) (bool, error)
- func FileModTime(filename string) int64
- func GlobalTempDir() string
- func SlurpAsBytes(filename string) ([]byte, error)
- func TarCompress(src string, buf io.Writer) error
- func UntarDecompress(src io.Reader, dst string) error
- func Unzip(zipFile, dest string) error
- func WriteRegularFile(fileName, text, directory string) (string, error)
- func WriteString(line string, filename string) error
- func WriteStrings(lines []string, filename string, termination string) error
- func Zip(files []*os.File, dest string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
Returns the absolute path of a file
func FileExists ¶
FileExists reports whether the named file or directory exists.
func GlobalTempDir ¶
func GlobalTempDir() string
func SlurpAsBytes ¶
reads a file and returns its contents as a byte slice
func WriteRegularFile ¶
func WriteString ¶
append a string into an existing file
func WriteStrings ¶
Writes a string slice into a file The file is created
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.