Go for Rubyists
summary
Go is a compiled, garbage-collected language with static typing and type inference, designed for systems and network work; it dates from 2007 with a first release in 2009. Tooling includes gofmt, go get, go build and go test. Concurrency uses lightweight goroutines and communication-by-message channels. Example code: a parallel download manager that splits files into chunks, downloads them with multiple goroutines through channels and reassembles them successfully; several real projects (YouTube processing, Docker components, SoundCloud) use Go in production.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:06Why learn Go
- 2:15Go language basics
- 3:39Go syntax and types
- 5:51User-defined types
- 7:16Go tools and packages
- 9:20Go vs Ruby
- 10:44Object orientation in Go
- 11:05Error handling
- 12:30Exceptions vs errors
- 13:14Defer panic recover
- 15:19Concurrency in Go
- 16:44Go routines and channels
- 18:10Real-world concurrency
- 19:14Testing in Go
- 20:41Go testing framework
- 21:23Go in production
