Documentation
¶
Index ¶
- func AssertDirectory(directory string)
- func AssertWritableDirectory(directory string)
- func CloneFile(src, dst string) (err error)
- func ConvertBytesToHumanReadable(size int64) string
- func ConvertFileModeToString(mode int64) (string, error)
- func CopyFile(src, dst string) error
- func CreateSubdirectoriesForPath(workDir, path string) error
- func DirectoryExists(directory string) bool
- func DirectoryIsWritable(directory string) bool
- func FileExists(file string) bool
- func GetOsVendor(prefix string) (string, error)
- func GetOsVendorFromFile(filename string) (string, error)
- func GetOsVendorFromScanner(s *bufio.Scanner) (string, error)
- func IsDirectoryEmpty(name string) bool
- func IsTty() bool
- func Round(val float64, roundOn float64, places int) (newVal float64)
- func SlurpFile(filePath string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDirectory ¶ added in v0.28.0
func AssertDirectory(directory string)
func AssertWritableDirectory ¶ added in v0.28.0
func AssertWritableDirectory(directory string)
func ConvertFileModeToString ¶
func DirectoryExists ¶ added in v0.25.2
func DirectoryIsWritable ¶ added in v0.28.0
func FileExists ¶ added in v0.25.2
func GetOsVendor ¶
func GetOsVendorFromFile ¶
func IsDirectoryEmpty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.