Go Adapter Pattern Part 1: Functional Variadic Arguments
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.