You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize that this isn't required, but I thought of the possibility of switching the config to a json format. This way, we can avoid one more non-std lib import.
It's really simple to open a new file, and throw the io.Reader into a json.Decoder. Then you just unmarshal into the struct representing the whole config file. Note that I don't have a pull request for this since it's more of an idea than anything else right now, but if you're interested, I may be willing to throw one together.
I realize that this isn't required, but I thought of the possibility of switching the config to a json format. This way, we can avoid one more non-std lib import.
It's really simple to open a new file, and throw the io.Reader into a json.Decoder. Then you just unmarshal into the struct representing the whole config file. Note that I don't have a pull request for this since it's more of an idea than anything else right now, but if you're interested, I may be willing to throw one together.