exercises, activities, and questions for integrating data tools to your go program
- Go installed and running
- Working knowledge of go
- git for cloning and using the repo
If you are new to go, work through these exercises first
- Exercise 1 - Connect a Data base to your Go Service
- Exercise 2 - Databases in tests
- Exercise 3 - connect a streaming client
- Exercise 4 - validate your data contract with grpc
Using tools to manage a database. Tools like goose and sqlc can be used to easliy abstract database management into your software stack. The following page is the resulting code from the live demo
watch goose video watch sqlc video
Grpc is a valuable tool for managing data contracts. You can leverage grpc-gateway to still maintain restful best practices and accept json payloads while using protobufs to maintain structured data formats. You can view the demo code in grpc-gateway-demo