3 ms·
Show HN: Golang config library with hot-reload functionality
- tekknik 4y agoField tags on the struct means you’re using reflection, which is going to be slow. Additionally you shouldn’t allow the reload of a config by swapping a file on the filesystem as if someone can swap that file they can reconfigure your server. Embed your configs or use something more secure IMO. Additionally your use of an internal module will make someone’s day hell down the line when they need an access to something in that internal module.