I work a lot with JSON APIs in my Go projects, so almost every struct has some field tags on it to translate
AccountID
into account_id
and that sort of thing. Then one day I needed to load data from config using mapstructure and it took a few attempts with the search engine to find the syntax I needed, so it’s here for next time I need it (or in case you need it too). Continue reading