Documentation
¶
Index ¶
- func GetClientIp(request *http.Request) string
- func GetImages(dir string) ([]string, error)
- func GetImagesFromSubDir(dir string) (map[string][]string, error)
- func GetLastElement(path string) string
- func GetQuery(r *http.Request) string
- func IsImage(path string) bool
- func LoadImage(path string) (*model.ImageData, error)
- func LowerString(s string) string
- func Random(arr []string) string
- func RandomInt(max int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientIp ¶
func GetImagesFromSubDir ¶
GetImagesFromSubDir 获取目录下的所有子目录名称和图片数组,不包括主目录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.