Working with comments
Take care that following format will be treated as comment:
- Line begins with # or ;
- Words after # or ;
- Words after section name (i.e words after [some section name])
If you want to save a value with#
or;
, please quote them with`
or"""
.
Alternatively, you can use following LoadOptions to completely ignore inline comments:
cfg, err := ini.LoadSources(ini.LoadOptions{
IgnoreInlineComment: true,
}, "app.ini")