Documentation ¶
Index ¶
Constants ¶
View Source
const ( HtmlImage = "HtmlImage" ArticleThumb = "ArticleThumb" )
Variables ¶
View Source
var ConfigImageProcessor = map[string]ImageProcessor{ HtmlImage: ImageProcessor{600, 0, "processImage"}, ArticleThumb: ImageProcessor{300, 200, "MustProcessImage"}, }
Functions ¶
func MustProcessImage ¶
func MustProcessImage(imageName string)
func ReadFileToArray ¶
ReadYmlReader Read yaml file to arr. if json like, use json package, unless goyaml2 package.
Types ¶
type ImageProcessor ¶
Click to show internal directories.
Click to hide internal directories.