Thought this was cool: Introducing Go by Example
Comments: “Introducing Go by Example”
October 11 2012
The site already has several examples, including:
Read on to learn more about why and how we made Go by Example and what’s coming next.
Programmers learn to program by reading and writing programs. Go by Example therefore tries to give you:
- Explanations paired with code you’re reading – letting code speak for itself when it’s clear and providing context when it’s needed.
- Code that enables you to solve problems you have when writing your own programs.
We have more than 15 published examples and 70 more in development.
In order to best enable developers to access, use, and re-mix the content, Go by Example is released under a liberal Creative Commons license.
The source code is available on Github and we’ve already merged a pull request from a helpful reader of the alpha version.
Go by Example strives to provide the best experience possible for developers learning Go:
- Code and docs are typeset to ~60 characters per column to maximize legibility.
- Minimal styling keeps the focus on the docs and code.
- Code is highlighted with the excellent Pygments library.
- The site renders beautifully on both laptops and iPads.
We hope you find Go by Example a joy to read.
Go by Example is an early experiment. We’re interested in learning how developers find it useful, evolving the model, and shipping more examples that benefit developers.
If there’s an example you’d like to see or if you have any other feedback, let us know at @gobyexample or email the author at
We’re excited to share Go by Example and hope that you check it out
To learn about new examples and other updates on the site, follow @gobyexample.