https://medium.com/@rholcombe30/building-go-microservices-focused-on-testability-d6164751275d
A simple go server
go mod tidy
- Removes any unnecessary dependencies fromgo.mod
go mod verify
- Ensures thatgo.sum
is fully up-to-date based on the dependencies ingo.mod
go generate ./...
- Generates mock functions from interfacesgo test ./...
- Unit test applicationgo build
- Builds an executable of the server