I turned a lunchbox into a nightstand light controller
Making a smart button box...
Making a smart button box...
Go’s pgx package goes above being a postgres driver and actually implements its own interface that boasts better performance than the standard database/sql package. That, along with it being a well-maintained and actively developed project, make it an attractive option for using postgres in your next Go project. This guide will hopefully help you get up and running with pgx and docker-compose. 1. Go Project Create a new Go project according to pgx’s Getting Started guide ....
Thoroughly document your API. Please. That is all. Thorough API documentation allows consumers of your API to more easily generate clients for, and test against, your service. REST API Client generation Recently, while working on a Go project at work, I needed a REST API client for an external API. Having written a couple of API clients in the past, I wasn’t necessarily looking forward to the repetitiveness that came with implementing endpoint after endpoint after endpoint after… so I took some time to looking for anything that would get me off the hook....