Documentation
¶
Index ¶
- func CopyOrReplaceBinary(sourcePath, targetPath string) error
- func CreateFileFromBase64(path, b64 string) error
- func DownloadFile(path, url string) error
- func EnsureDir(path string) error
- func FileExists(path string) bool
- func ReadFileToString(path string) (string, error)
- func RemoveLines(fn string, start, n int) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyOrReplaceBinary ¶ added in v0.98.0
func CreateFileFromBase64 ¶ added in v0.89.0
CreateFileFromBase64 writes the decoded base64 data into the given file path, creating all necessary parent directories.
func DownloadFile ¶ added in v0.89.0
DownloadFile downloads the content from url into path. It creates parent directories as needed and writes atomically.
func FileExists ¶
func ReadFileToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.