Parsing the Cookie
and Set-Cookie
headers with Go (2 mins read).

How to parse the value of a Cookie
or Set-Cookie
header to a JSON object.
Parsing the Cookie
and Set-Cookie
headers with Go (2 mins read).
How to parse the value of a Cookie
or Set-Cookie
header to a JSON object.
Generating a Go HTTP Client from OpenAPI schemas (2 mins read).
How to generate a Go HTTP client really quickly and easily, with no manual work, using the oapi-codegen project.
Generating Go structs from OpenAPI schemas (2 mins read).
How to generate Go structs really quickly and easily, with no manual work, using the oapi-codegen project.
Generate Go client and server boilerplate from OpenAPI 3 specifications - GitHub - deepmap/oapi-codegen: Generate Go client and server boilerplate from OpenAPI 3 specifications
Setting up GitLab CI for Go projects (2 mins read).
How to set up a basic set of automated builds for Go projects on GitLab CI, for modern Go projects.
Convert go test output to junit xml. Contribute to jstemmer/go-junit-report development by creating an account on GitHub.
Providing a basic implementation of Ruby's ARGF.read
in Go (2 mins read).
Creating a Go helper method to read from stdin
or a file, inspired by Ruby's ARGF.read
method.
I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it
Recommended read: Rewriting Bash scripts in Go using black box testing https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing/
Introducing a Go command-line tool for interacting with Micropub servers (1 mins read).
Announcing the initial release of micropub
, a CLI for interacting with Micropub servers.
Gotcha: Segfault when HTTP headers include newlines with Go (2 mins read).
Why you may be receiving a segfault when using http.Client
with HTTTP headers that include newlines.
Converting Spring Boot Property Variables to Environment Variables with Go (1 mins read).
A command-line script to convert a Spring Boot property to an environment variable.
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Go (2 mins read).
How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Go.
Gotcha: Field casing is important when marshalling struct
s to JSON in Go (2 mins read).
Why you may be missing fields from your struct
s in your Go json.Marshal
calls.
Pretty Printing JSON on the Command Line with Go (1 mins read).
Using Go's JSON module to pretty print JSON objects from the command line.
Reading all of stdin
on the command-line with Go (1 mins read).
How to read the whole of stdin
, up to EOF, with Go.
Appending to a Querystring using Go (1 mins read).
How to append query parameters in a URL in Go.
What is a map[string]interface{} in Go, and why is it so useful? How do we deal with maps of string to interface{} in our programs? What the heck is an interface{}, anyway? Let's find out, with renowned Go teacher John Arundel, aka @bitfield.
Building an Automagically Updating Personal README for GitLab and GitHub (2 mins read).
Announcing the publishing of readme.jvt.me as well as automagically updating READMEs in my GitLab and GitHub profiles.
You're currently viewing page 3 of 3, of 130 posts.