Why do you think there is a lot of training data? Could it be because it's stable and virtually unchanged for decades? Hmmm.
1,189 karma · joined October 23, 2017
For more basic configs, I would potentially look into KCL https://www.kcl-lang.io/
It has a much simpler usage overall especially if you are only really trying to enforce some config rules.
The other alternative is to just use whatever language you are writing your software in and build a basic validator
[0] https://fory.apache.org/blog/2025/10/29/fory_rust_versatile_...
https://www.youtube.com/watch?v=On2V_L9jwS4
I guess if you don't control the platform you are running on this is a way to do it in "userspace"
The notion of stack vs heap allocation isn't something that even exists in the language. Users are expected to not worry about it... until, of course, until you're optimizing performance and you need to worry about it.
This is one of the best and worst aspects with Go. Anyone can write pretty performant code without having to understand the underlying memory model. If you get to the point where you are trying to optimize at this level, the benefits of using a more approachable language start to fall apart and you spend more time chasing implementation details.