lytics / confl

Config parser for go, modeled after Nginx format, Nice lenient syntax with Comments
MIT License
138 stars 20 forks source link

Preserve comments when encoding a decoded and edited config #11

Open khimaros opened 6 years ago

khimaros commented 6 years ago

confl is machine editable and human readable which makes it an extremely useful tool. However, using a machine to edit a confl config results in the comments being lost.

araddon commented 6 years ago

Yes, this is a great point. I will think about this, possibly a convention based approach like reflection looking for a "Description" or "Comment" field on the current context?