Henrik Hedlund Yet another developer rambling incoherently in a corner of the internet
Posts with the tag go:

Firestore Testing with Fakes in Go

In this post we’re going to look at how we can create fakes to test Go code that interacts with Firestore. I’m going to refer to this part of the application as a repository, but it could be any code that stores or fetches data in a Firestore database.

Cloud Pub/Sub Schemas

Google Cloud Pub/Sub message schemas is a feature promising to bring some order into the potential chaos that lurks within a highly event driven architecture. In this post we’re going to investigate using Protocol Buffers as Pub/Sub schemas together with Go and Terraform.

Google Cloud Functions with private Go dependencies

Anyone who has deployed a Google Cloud Function written in Go knows that there are a number of restrictions involved. For example, the highest Go version supported is 1.13. Another example is the lack of built-in support for dependencies when using Go modules. This post covers an approach to handling the latter using Terraform.