Skip to content

yekm/gobyexample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go by Example

Content and build toolchain for Go by Example, a site that teaches Go via annotated example programs.

Overview

The Go by Example site is built by extracting code and comments from source files in examples and rendering them via the templates into a static public directory. The programs implementing this build process are in tools.

Building

Build Status

See Makefile

Publishing

Travis pushes to gh-pages. Set DKEY env var in travis settings to a base64 encoded content of your deploy key.

Forking

Remove or edit google analytics id

TODO

  • prettify index.html
  • add link to github for every example
  • add usual full example output below the table
  • write script to pull examples from upstream and trigger it from travis
  • post examples to play.golang.org via curl in Makefile and then sed s/%SOMETIHNG%/play.golang.url/ in corresponding html file
  • debug strange behaviour like in command-line-flags.html
  • parse markdown in comments with some js library from cdn like Marked.js
  • move to pure.css and divs

License

This work is copyright Mark McGranaghan and licensed under a Creative Commons Attribution 3.0 Unported License.

The Go Gopher is copyright Renée French and licensed under a Creative Commons Attribution 3.0 Unported License.

Thanks

Thanks to Jeremy Ashkenas for Docco, which inspired this project.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 32.7%
  • Go 25.9%
  • HTML 16.8%
  • Makefile 16.2%
  • CSS 8.4%