Documentation ¶
Index ¶
- func GetDirectory() (string, error)
- func GetDirs(path string) []string
- func GetEncodedSvg(pathToSvg string) string
- func GetFileName(fn, author string) string
- func GetPhotoDev(dir, slugName string) string
- func GetPhotoDimension(path string) (int, int)
- func GetPhotoProd(dir, slugName string) string
- func GetPhotos(path string) []string
- func GetSHA1(filePath string) string
- func RemoveAll(path string) error
- func Resize(inPath, author, outPrefix string, sizes []int)
- func Template() string
- func UniqueID() string
- type Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPhotoDimension ¶
GetPhotoDimension given path
Types ¶
type Collection ¶
type Collection struct { ID string `json:"id"` Name string `json:"name"` Src string `json:"src"` Color string `json:"color"` SrcHd string `json:"src_hd"` Width int `json:"width"` WidthHd int `json:"width_hd"` Height int `json:"height"` HeightHd int `json:"height_hd"` }
Collection struct
Click to show internal directories.
Click to hide internal directories.