Documentation ¶
Index ¶
- func ByteToString(value []byte) string
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func CreateDirs(paths ...string) error
- func DecodeBase64(value string) (string, error)
- func EncodeBase64(value string) string
- func ParseCheckboxBoolean(value string) bool
- func RemoveDir(path string) error
- func SanitizeString(s string) string
- func SanitizeUrl(s string) string
- func StringToByte(value string) []byte
- func WriteFile(filepath string, s []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteToString ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func CopyFile ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func CreateDirs ¶
CreateDirs create a directory based on a given paths
func DecodeBase64 ¶
DecodeBase64 returns a decoded string from base64
func EncodeBase64 ¶
EncodeBase64 returns a encoded string to base64
func ParseCheckboxBoolean ¶
func SanitizeString ¶
func SanitizeUrl ¶
func StringToByte ¶
Types ¶
This section is empty.