Documentation ¶
Index ¶
- func AbsolutePath(path string) string
- func CheckExtensions(file string, ext *regexp.Regexp) bool
- func FileValid(info os.FileInfo, path string, exts *regexp.Regexp) bool
- func HashFilename(name string) string
- func RemoveWhitespaces(str string) string
- func ValidatePagination(offset, limit string) ([2]int, error)
- func WorkingDirectoryPath(p string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
AbsolutePath returns the absolute path to the provided path
func CheckExtensions ¶
CheckExtensions checks if the found file has an extension matching the provided valid ones.
func FileValid ¶
FileValid checks wether the found directory or file is not a directory as well if the specified file extension is correct
func HashFilename ¶
func RemoveWhitespaces ¶
func ValidatePagination ¶
func WorkingDirectoryPath ¶
WorkingDirectoryPath returns the absolute path to the provided path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.