4 ms·
Field 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
by tekknik 4y ago
Field 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.