The Type-Switched Variadic System I Keep Reusing in Go
I keep reaching for the same API shape in Go: a variadic argument list (...any) processed with a type switch.
I call it my type-switched variadic system. It is not the only way to configure behavior in Go, but for parser/consumer style libraries it has been one of the most productive patterns I use.
If I had to summarize it for future me (or future agents helping me write code), it is this: