Modified from a workshop given at DinosaurJS 2019
Go is becoming an increasingly necessary tool in the belt of “languages you should know to be relevant.” Although the beauty of the language is in its simplicity, the transition from JavaScript can be a little bumpy. In this workshop, we’ll work through the basic of Go, paying particular attention to pitfalls you may encounter transitioning from a language like JavaScript.
This workshop is designed for developers with little to no Go experience.
It is ideal for those with knowledge of JavaScript or another similarly dynamic language.
For the optimal experience, audience members should be comfortable in a code editor, the command line, and working with git and github.
There will also be the option to follow along in a Go playground for much of the session.
To follow along through all of the code examples, please install Go prior to attending. Ensure that you see a version number when running go version
in your terminal.
You can install Go through the docs.
- Background and brief history of Go
- Installation and environment setup
- Basic go syntax and structures
- Error handling
- Concurrency with Goroutines & channels
Throughout the workshop we will be building a series of small Go apps that demonstrate the topics discussed.
The progression of apps will be similar to the following:
- Build a basic Hello World
- Build TODO list with a Go html template
- Build endpoints to hit a third party API
- Potentially build more of an internal backend and/or add concurrency to the API