Hi Folks, it’s been a while and I remembered some handy snippets I’d used for Go synchronization a while back and figured it would be a good blog post subject. It’s pretty straightforward so this should be a light read :)
Today’s post is going to be short and sweet. You’re probably used to SSH’ing into remote instances and doing some debugging, running some commands, etc. Usually a plain terminal is fine for this. But sometimes you’re doing something that requires a long lived process and you don’t want the process to be killed if you happen to disconnect from the remote server. Or maybe you just want a sweet looking terminal. Anyway, this is where tmux (short for terminal-multiplexer) comes in.
Greetings! Coming from a Python background, I don’t have the Go strings API memorized; I frequently find myself repeating the same search/copy/paste for common operations. There’s also a lot of formatting related patterns that I’ve had to repeatedly look up. In this post I’m going to document some of the more useful Go strings snippets I’ve come across, as well as some other useful concepts relating to strings in Go in general.
In this post I’m going to write down some useful Docker snippets I frequently find myself copy/pasting. There won’t be too much substance to this post; this will mainly be a rather self serving record for my own use cases that I’ll try to update from time to time :)
This is the third in my series of posts showcasing how to use the “adapter pattern” in Go. If you missed the earlier entries in this series, you should take a look at Part 1 and Part 2. This is the third and likely final component of the series; I’m going to show how you can structure handlers on your HTTP server in a way that plays nice with the patterns described in the previous posts. The inspiration for this post comes from Mat Ryer’s talk here.
This is the second in my series of posts showcasing how to use the “adapter pattern” in Go. If you missed Part 1, be sure to check it out because we’re going to be building on that here. For this post I’m going to show how you can adapt routes on your HTTP server with middleware functions. The inspiration for this post comes from Mat Ryer’s middleware post here.
In the next couple posts I’m going to show how to use the “adapter pattern” in Go. This is very handy pattern that allows for flexibility while keeping your APIs clean and readable. The inspiration for this post comes from a few blog posts I’ve read, but mainly Dave Cheney’s functional options post here.
Hey everyone! This is going to a be a quick post covering something I’ve encountered a number of times and seen other developers struggle with: JSON encoding custom data structures in Python.