Mark Sagi-Kazar

Tagged with "go"

Decoding custom formats with Viper

5 min read go viper config

A frequently requested feature for Viper is adding more value formats and decoders. For example, parsing character (dot, comma, semicolon, etc) separated strings into slices. What most people don't know is that Viper can already be extended with custom decoders without adding any more code to the core.

Read more

Vanity import paths in Go

9 min read go import

Recently I migrated one of my libraries (Emperror) to a vanity import path. Although the migration itself was easy (took less than one day), making the decision, thinking it through from every angle to make sure existing applications don't break, wasn't. I did a lot of research to find the right migration path, URL, tooling and I decided to share my experience in this post.

Read more