write

package
v0.0.0-...-da552d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL