RFRyan Faermaninrayaz.ventures·Feb 15, 2024 · 3 min readPassing around database transactionsI'm not a huge fan of reflection-based ORMs, which is one of the reasons that I've been using sqlc and some service types for my business logic. Sqlc is great. I define my migrations and my queries and with the POWER OF CODE GENERATION™ ... I get a b...00
RFRyan Faermaninrayaz.ventures·Feb 4, 2024 · 4 min readAuthorization made most simpleOne of the things I often struggle with in my go applications is authorization. Lots of the tools out there are complex or made for use-cases much larger than my own. In a recent project I came up with a very simple approach. TLDR; Checkout a generic...00
RFRyan Faermaninrayaz.ventures·Jan 11, 2024 · 2 min readHandling odd JSON decoding in GoI was recently writing a client for a JSON-based API that had some unique behavior. The API lets you look up ham radio callsigns and their associated information. If the callsign exists you get back a JSON object with those details. The JSON of a val...00