Documentation ¶
Index ¶
- Constants
- func CheckPicture(name string, resize bool) (string, error)
- func DeleteUnused(used []string) error
- func GenerateOtp(len int) string
- func GenerateRandomString(len int) string
- func GetAvatar(username string) (bytes.Buffer, error)
- func GetImage(name string) (bytes.Buffer, error)
- func GetImageFile(name string) (image.Image, error)
- type Config
- type Env
Constants ¶
View Source
const FILEPATH string = "./static/assets/images/"
FILEPATH is the path to the profile pictures
View Source
const STATICPATH string = "/static/assets/images/"
STATICPATH is the path to the static folder from the web server
Variables ¶
This section is empty.
Functions ¶
func DeleteUnused ¶
func GenerateOtp ¶
GenerateOtp generates a random number of length len
func GenerateRandomString ¶
GenerateRandomString generates a random string of length len using the pool of characters provided
Types ¶
Click to show internal directories.
Click to hide internal directories.