Closed GoogleCodeExporter closed 8 years ago
An alternative to a native UI is to display the image in the browser. Attached
are two files implementing that idea:
exercise_images.go:
Fills an image using the Pic function above.
serve_pic.go:
A modification of go-tour/pic.go.
Exports functions ToImage and ServeImage, the latter runs
a http server on port 4000 serving the image as a png.
Original comment by James.Sy...@gmail.com
on 8 Apr 2012 at 3:29
Attachments:
It's designed to be run from the tour interface, which interprets such
responses correctly and displays the image.
Original comment by a...@golang.org
on 4 Sep 2012 at 5:22
Well, that makes sense. Perhaps an update to the tour or code to indicate that
fact?
Original comment by James.Sy...@gmail.com
on 4 Sep 2012 at 3:09
Does not display an image in the tour web interface either. Attached are
results of running the same code in Chrome and Firefox:
Original comment by sgrif...@gmail.com
on 27 Mar 2013 at 11:43
Attachments:
I'm having the same problem on OSX
Original comment by div...@gmail.com
on 29 Mar 2013 at 11:42
This does not work in the tour interface in Chrome on OSX, using the latest
64-bit binaries (go1.0.3 Mac OS X (x86 64-bit)).
Original comment by j.a.e.we...@gmail.com
on 31 Mar 2013 at 6:36
Thanks for the report folks, a fix is in the works:
https://codereview.appspot.com/8286043
Original comment by a...@golang.org
on 2 Apr 2013 at 9:32
This issue was closed by revision 0afa8a2c0850.
Original comment by a...@golang.org
on 2 Apr 2013 at 9:59
Original issue reported on code.google.com by
James.Sy...@gmail.com
on 7 Apr 2012 at 2:14