Documentation
¶
Index ¶
- type Tools
- func (t *Tools) CreateDirIfNotExist(path string) error
- func (t *Tools) DownloadStaticFile(w http.ResponseWriter, r *http.Request, p, file, displayName string)
- func (t *Tools) RandomString(n int) string
- func (t *Tools) Sluggify(s string) (string, error)
- func (t *Tools) UploadFiles(r *http.Request, uploadDir string, rename ...bool) ([]*UploadedFile, error)
- func (t *Tools) UploadOneFile(r *http.Request, uploadDir string, rename ...bool) (*UploadedFile, error)
- type UploadedFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tools ¶
Tools is the type used to instantiate this module. Any variable of this type, will have access to all the methods with the receiver *Tools
func (*Tools) CreateDirIfNotExist ¶
func (*Tools) DownloadStaticFile ¶
func (*Tools) RandomString ¶
RandomString returns a string of random characters of length n , using RandomStringSource
func (*Tools) UploadFiles ¶
func (*Tools) UploadOneFile ¶
type UploadedFile ¶
UploadedFile is a struct used to save information about an uploaded file
Click to show internal directories.
Click to hide internal directories.