September 2014: Docker, Templates, Packages.
Please RSVP at Meetup and/or Google+.
We get started at 6:30 pm, pizza is provided.
Talks
Docker
Docker has been taking the cloud by storm. Come learn about containers and distributed applications. (slides)
Related:
HTML Templates
@MatthiasStone followed up his earlier text/template introduction with html/template from the standard library. He first covered the basics — pipelines, the . cursor, field access on structs, range over slices and maps, fuzzy-false if conditions, and chaining method results in a pipeline — then moved to HTML-specific concerns: contextual auto-escaping and the typed string types (template.HTML, template.JS, template.CSS, template.URL, template.HTMLAttr) used to mark content safe in a particular context. The final example composed a small website from multiple {{define}}/{{template}} blocks loaded with ParseGlob and rendered per route with ExecuteTemplate.
Key points:
html/templatebehaves liketext/templatebut escapes output for HTML context.{{.}}is the cursor; pipelines pass values through functions.rangeiterates slices/maps;ifuses Go's fuzzy-false rules ("",0,nil,false).- Methods can be chained in a pipeline (e.g.
{{ .Times . | .Times}}). - Escaping is context-aware (HTML, attribute, JS, CSS, URL).
template.HTML/JS/CSS/URL/HTMLAttropt a value out of escaping.{{define}}/{{template}}compose reusable partials;ParseGlobloads them andExecuteTemplaterenders by name.
Packages and Dependencies
Packages in the Go language and the surrounding tools. (slides)
Related:
- Contributing to Open Source Git Repositories in Go by Katrina Owen
- Organizing Go Code by David Crawshaw
- Support development branches in Gopkg.in
- Making godep save always copy code
News
Articles
- Thoughts On Five Years of Emerging Languages by Alex Payne
- Go Is a Shop-built Jig by Rob Napier
- Things are Mostly the Same: Differences by Kent Beck
- How I Start Go by Peter Bourgon
- How Stacks are Handled in Go by Daniel Morsing
Resources
- The Go Programming Language
- Gopher Community on Slack
- Job board at golangprojects.com (Twitter) and we love golang
- News at Golang Weekly and Newspaper.IO
- Link aggregation at Lobste.rs and reddit
Events
- Wednesday Hack Nights - September 24
- DemoCamp - September 29
- Startup Edmonton Hackathon - October 4
- dotGo - October 10 in Paris
- GothamGo - November 15 in New York (
go2014presale) - Edmonton Go Meetup - October (Planning)