Working with the PostgreSQL JSONB column type in Golang using GORM

I recently had to do some work that required I store data in JSON into the database. The options I had available to use were PostgreSQL’s JSON or JSONB column data type. I chose JSONB because it is more recent and has some advantages over the JSON column type I used GORM as my ORM of choice on this project, so I had to find out if GORM had support for the JSONB type....

September 29, 2022 · 3 min · 581 words · Sayo Paul

Custom Formatting With bufio.Scanner() in Golang(Kubernetes API)

To get the runtime logs of an active project on Pipeops, I needed to fetch the pod logs from an AWS EKS cluster, using Kubernetes’ API. By default, the API only returns the most recent logs as of the time of the request. This meant that in order to have the logs updated, several calls had to be made. I pushed the logs to Google’s Firebase Cloud Firestore where the front-end read from to give the “real-time” feel....

September 8, 2022 · 5 min · 900 words · Sayo Paul