#go
3 posts · All tags
- Use RBAC to protect your gRPC service right on the proto definitionDeclare which roles may call each gRPC method with a custom MethodOptions extension, then enforce it with a single interceptor that reads the proto descriptor.
- Snapshot test your PostgreSQL in Golang pgx driverWrite unit tests for your repository layer using query snapshots: parse your SQL with pg_query_go and check it without starting a database.
- Dependency Injection in Go without the help of convenience containers?After a few weeks of Spring Boot's @Autowired magic, how hard is dependency injection in Go without a container? Interfaces, factories, and a lazy container of your own.