canvasstreamtest

command module
v0.0.0-...-03bca7b Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2013 License: GPL-2.0 Imports: 13 Imported by: 0

README

CanvasStreamTest

After reading Intro to (images in) Go by @pheelicks I started thinking about a better approach to stream the canvas to the browser. Using data URIs, this is quite simple. I hammered together the Nodes example with my approach as a showcase. I don't use base64 data URIs anymore because it adds a lot of overhead. Instead I serve the image in a 2nd handler and just update the img.src attribute with a unused parameter so the browser dosn't cache it.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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