Documentation ¶
Index ¶
- func GenerateRandomString(length int) string
- func GetExecutablePath() (string, error)
- func GetImageFromFilePath(filePath string) (image.Image, error)
- func GetMediaType(fileType string) mediatypes.MediaType
- func GetThumbnailFileAddedExtension(filePath string) (string, error)
- func GetToolPath(toolName string) (string, error)
- func ImageToRGBA(src image.Image) *image.RGBA
- func IsAllowedFileType(fileType string, w http.ResponseWriter) bool
- func JsonReaderFactory(in interface{}) (io.Reader, error)
- func RenderError(w http.ResponseWriter, err error, statusCode int)
- func RenderIfError(err error, w http.ResponseWriter, statusCode int) bool
- func ResizeImage(img *image.RGBA, height int) *image.RGBA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
func GetExecutablePath ¶ added in v1.0.5
func GetImageFromFilePath ¶ added in v1.0.3
func GetMediaType ¶ added in v1.0.5
func GetMediaType(fileType string) mediatypes.MediaType
func GetThumbnailFileAddedExtension ¶ added in v1.0.5
func GetToolPath ¶ added in v1.0.5
func IsAllowedFileType ¶
func IsAllowedFileType(fileType string, w http.ResponseWriter) bool
func JsonReaderFactory ¶ added in v1.0.2
func RenderError ¶
func RenderError(w http.ResponseWriter, err error, statusCode int)
func RenderIfError ¶
func RenderIfError(err error, w http.ResponseWriter, statusCode int) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.