Skip to content
Darren Sapalo
Reading, writing, discourse
  • About
  • Blog

Tag: unmarshal

June 21, 2021

How to fix Viper unmarshal error for nested structs

Let’s say you have the following structs that you need to unmarshal using Go’s Viper library (Go configuration with fangs). It’s intended to parse the configuration file you have found on config.yaml on your root…

Powered by WordPress | Theme: Write by Themegraphy