Use GitHub Codespaces to learn practical golang basics like project layout, creating go modules, importing libraries, creating a REST API server, and more.
Overview
Syllabus
Introduction
- Programming in Go
- What you should know
- Using GitHub Codespaces with this course
- Installing Go and third-party libraries
- Hello World
- Creating a new module
- Try it: Move functions to a new module
- Check it: Move functions to a new module
- Methods vs. functions
- Structs and receiver methods
- Pointers vs. value methods
- The database
- Try it: Create a struct and receiver methods
- Check it: Create a struct and receiver methods
- Using a router
- Try it: Add the router
- Check it: Add the router
- Creating handlers: GET
- Creating handlers: POST
- Try it: Create the order handler
- Check it: Create the order handler
- Integration tests
- Try it: Create integration tests
- Check it: Create integration tests
- Next steps
Taught by
Martine Moses