It's possible that you're using OpenAPI specifications to describe the format of your API, and as noted in Use a (JSON) Schema for the Interface Portion of your RESTful API is something I really recommend for codifying part of your API documentation.
If you're on a Go project, it...
As a heavy user of GitLab, I naturally want my Go projects to have an automated build/test process.
While looking to set this up, I've found that a lot of the articles online are pre-Go modules, and back when you needed to install things into ~/go/src, which is no longer necessar...
Now that Go 1.18 has been released with support for generics, it's easier than ever to create helper functions for your test assertions.
Using helpers for your test assertions can help to:
Make your test functions clean and clear;
Keep test failure messages consistent...
While I write more Go command-line utilities, I find that I'm generally reading from stdin, but sometimes need to read input from files.
I was happy using file redirection in my shell, for instance:
$ ./helper <<< stdin
$ ./helper < file.txtAs a lot of my scripts are...
The title would have been more creative if it was GoReleaser 1.18 as well… maybe… probably not.
Introduction
In the first post, I explained there were four aspects of a blockchain that this series would explore with a backing implementation provided by the Ardan blockchain project.
Digital accounts with electronic signatures and verification
Transaction distribution and sy...
GoReleaser 1.6 is out! Another “boring” release with some miscellaneous improvements and bug fixes.
Describes Prig, which is for Processing Records In Go. It's a text processing tool like AWK, but it uses Go as the scripting language.