Comments (8)
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 [email protected]
on 8 Apr 2012 at 3:29
Attachments:
from go-tour.
It's designed to be run from the tour interface, which interprets such
responses correctly and displays the image.
Original comment by [email protected]
on 4 Sep 2012 at 5:22
- Changed state: WontFix
from go-tour.
Well, that makes sense. Perhaps an update to the tour or code to indicate that
fact?
Original comment by [email protected]
on 4 Sep 2012 at 3:09
from go-tour.
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 [email protected]
on 27 Mar 2013 at 11:43
Attachments:
from go-tour.
I'm having the same problem on OSX
Original comment by [email protected]
on 29 Mar 2013 at 11:42
from go-tour.
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 [email protected]
on 31 Mar 2013 at 6:36
from go-tour.
Thanks for the report folks, a fix is in the works:
https://codereview.appspot.com/8286043
Original comment by [email protected]
on 2 Apr 2013 at 9:32
- Changed title: pic.Show doesn't work from local tour interface
- Changed state: Started
from go-tour.
This issue was closed by revision 0afa8a2c0850.
Original comment by [email protected]
on 2 Apr 2013 at 9:59
- Changed state: Fixed
from go-tour.
Related Issues (20)
- Patch for /content/tour.article HOT 2
- Fix assignment syntax in "Mutating maps" HOT 5
- Slide 15 of Tour (Type conversions) correction
- Patch for /solutions/loops.go HOT 2
- Patch for /solutions/loops.go HOT 3
- Adding import fmt to tour #38 breaks it HOT 3
- "Type conversions": maybe change example to match the point the text is trying to make about explicit conversions
- ui: When clicking "syntax off": Uncaught TypeError: Cannot read property 'setOption' of undefined HOT 2
- No Solution for HTTP Handlers HOT 4
- Patch for /solutions/webcrawler.go HOT 2
- Fix a small typing mistake HOT 1
- Feature request: gotour should remember the content of the edit boxes HOT 4
- tree/tree.go always returns the same trees between subsequent runs HOT 1
- Patch for /solutions/webcrawler.go
- Slices Exercise Produces an Error HOT 1
- Go Tour UI - Table of Content scrollbar inaccessible HOT 2
- Type Stringer is an interface, not a struct HOT 2
- update link to "Go's Declaration Syntax" article
- Go Tour shows blank white page
- Stringers exercise - Tour of Go HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-tour.