Closed GoogleCodeExporter closed 9 years ago
Thanks for the report, but I can't reproduce the issue. Actually there is an
example in the docs showing that dashes specified in tags work:
http://godoc.org/code.google.com/p/gcfg#example-ReadStringInto--Tags
Can you share a runnable code sample that demonstrates the error?
While the readability of the code could be improved, the '-' => '_'
substitution only matters for fields where there is no name specified in a tag.
Original comment by speter....@gmail.com
on 3 Nov 2014 at 4:00
I just tried to reproduce the error I got yesterday and I can't seem to get it
to fail any more :/
I did update the package before I tested, so maybe it was fixed?
In any case, this issue can be closed.
Thanks for your time!
Original comment by rpk...@gmail.com
on 3 Nov 2014 at 7:30
I didn't go through the diffs in detail but I don't recall any relevant changes
(unless you were using a version prior to tags support). At least the
example-test has been there since the initial implementation. What occurred to
me is that the error could happen if the field is not exported, but that is to
be expected.
Anyway feel free to reopen in case you encounter it again.
Original comment by speter....@gmail.com
on 3 Nov 2014 at 9:29
Original issue reported on code.google.com by
rpk...@gmail.com
on 2 Nov 2014 at 7:32