Documentation
¶
Index ¶
- func CreateZipArchiveFile(saveAs string, files []ZipFile, ignoreError bool) (err error)
- func Exist(path string) bool
- func FileGetContents(filename string) (string, error)
- func FilePutContents(filename string, content []byte) error
- func InsertSuffix(src string, suffix string) string
- func ReplaceExt(src string, ext string) string
- func Size(path string) int64
- type ZipFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateZipArchiveFile ¶
CreateZipArchiveFile create a zip archive file from files
func FileGetContents ¶
FileGetContents reads entire file into a string
func FilePutContents ¶
func InsertSuffix ¶
InsertSuffix insert a suffix to filepath
Types ¶
type ZipFile ¶
ZipFile is a file wrapper contains filename and path
func CreateZipArchive ¶
CreateZipArchive create a zip archive
Click to show internal directories.
Click to hide internal directories.