Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageTemplate = `` /* 130-byte string literal not displayed */
ImageTemplate defines a basic html template to insert an image using data:image/jpeg;base64,mydatahere.
Functions ¶
func ImageJPEG ¶
func ImageJPEG(w http.ResponseWriter, img *image.Image)
ImageJPEG encodes an image 'img' in jpeg format and writes it into ResponseWriter.
func ImageSVG ¶
func ImageSVG(w http.ResponseWriter)
ImageSVG encodes an image 'img' in jpeg format and writes it into ResponseWriter.
func ImageWithTemplate ¶
func ImageWithTemplate(w http.ResponseWriter, img *image.Image)
ImageWithTemplate encodes an image 'img' in jpeg format and writes it into ResponseWriter using a template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.