DEV Community


Discussion on: Let's write config for your Golang web app on right way — YAML 👌

dadatuputi profile image

Good article, thank you. I'm working on a personal project and using this opportunity to learn go. I followed your guide mostly, except I have two different configuration files. I wanted to avoid rewriting code, and I was able to abstract away the type of config struct from the YML parsing function using an interface{} as an additional parameter. It worked well for me, you can see it here. Thanks again.

koddr profile image
Vic Shóstak Author

Thanks for reply! 😉 Yep, separated configs are very helpful.

Interesting project, btw! Keep going 👍