Documentation
¶
Overview ¶
Package processor provides functions for file and directory manipulation
Index ¶
- Variables
- func CleanupUploadsDirectory(temporaryUploadsDirectory string) bool
- func CopyDirectory(source string, destination string) bool
- func CopyFile(source string, destination string) bool
- func CreateDirectory(directoryName string) bool
- func CreateFile(Filename string, contentType string) bool
- func CreateFileAsByte(Filename string, contentType []byte) bool
- func DirectoryDelete(directoryName string) bool
- func DirectoryOrFileExists(entryName string) bool
- func FileDelete(Filename string) bool
- func FileToURLValues(filePath string) (url.Values, error)
- func GetSubstringCount(str string, seps ...string) (i int)
- func ReadFile(Filename string) []byte
- func UploadHandler(w http.ResponseWriter, r *http.Request, temporaryUploadsDirectory string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Filename string
Functions ¶
func CleanupUploadsDirectory ¶
Used for cleaning up the temporary uploads directory
func CopyDirectory ¶
Copies a directory to a source destination
func CreateFile ¶
Create a specified file with specified contents as a string
func CreateFileAsByte ¶
Create a specified file with specified contents as a byte array
func DirectoryOrFileExists ¶
Check if a directory or file exists
func FileToURLValues ¶
Convert a files contents to url.Values
func GetSubstringCount ¶
Provides a count of substrings given from provided string and separator(s)
func UploadHandler ¶
Use: UploadHandler |DESCRIPTION| Handles file uploaFilenameds and returns the file path and file of the uploaded file |ARGS| w (http.ResponseWriter), r (*http.Request), temporaryUploadsDirectory (string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.