Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFolder(folderPath string) error
- func CreateTempFile(outputDir string, namePrefix *string) (f *os.File, err error)
- func FileGetContents(path string) (content string, err error)
- func FileOrFolderExists(filePath string) bool
- func GenerateUploadId(useNano bool) (result string)
- func GenerateUserBreadCrumb(size int) string
- func GetFileSize(filePath string) (size int64, err error)
- func GetImageDimension(imagePath string) (width int, height int, err error)
- func GetImageOrientation(imagePath string) (orientation string, err error)
- func GuessImageFormat(filePath string) (format string, err error)
- func HashCode(data string) int
- func IsDirectory(filePath string) bool
- func MicroTime() float64
- func MtRand(min, max int64) int64
- func NumberFormat(number float64, decimals uint, decPoint, thousandsSep string) string
- func Realpath(fpath string) (string, error)
- func RemoveDirectory(filePath string) bool
- func ReorderByHashCode(data map[string]interface{})
- func SaveImage(path string, img image.Image) (err error)
Constants ¶
View Source
const ( BoundaryChars = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" BoundaryLength = 30 )
Variables ¶
View Source
var DefaultTempPath = ""
Functions ¶
func CreateFolder ¶
func CreateTempFile ¶
func FileGetContents ¶
func FileOrFolderExists ¶
func GenerateUploadId ¶
func GenerateUserBreadCrumb ¶
func GetFileSize ¶
func GetImageDimension ¶
func GetImageOrientation ¶
func GuessImageFormat ¶
func IsDirectory ¶
func NumberFormat ¶
func RemoveDirectory ¶
func ReorderByHashCode ¶
func ReorderByHashCode(data map[string]interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.