A very simple example using CompileDaemon and a Docker volume to live reload Go code, entering from the ./cmd folder.
Continue reading “Live reloading Go with Docker Compose”Using Testify suite setup/teardown to run operations before/after groups of tests in Go
The standard testing library in go lacks setup and teardown features, Testify adds this feature (and many others).
Continue reading “Using Testify suite setup/teardown to run operations before/after groups of tests in Go”Enum type in Go
This ‘Season’ type can be used like any other type in go, but with limited allowed values.
Continue reading “Enum type in Go”Populate Golang relationship field using MongoDB Aggregate and $lookup
Replace the relationship ID with the data object that it references.
Continue reading “Populate Golang relationship field using MongoDB Aggregate and $lookup”Check if Golang interface is a slice
This function returns true if the given interface is a slice, otherwise it returns false.
Continue reading “Check if Golang interface is a slice”Go module with local package folders
A basic go module called example with additional handlers and data packages, which doesn’t require Git.
Continue reading “Go module with local package folders”