Comments (3)
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 [email protected]
on 3 Nov 2014 at 4:00
from gcfg.
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 [email protected]
on 3 Nov 2014 at 7:30
from gcfg.
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 [email protected]
on 3 Nov 2014 at 9:29
- Changed state: WorksForMe
from gcfg.
Related Issues (15)
- Error messages should be human readable HOT 2
- support for "array of section" HOT 7
- doc: make tag explanation more specific and example discoverable HOT 3
- restructure for adaptability to different formats HOT 2
- [patch] allow "_" in the key HOT 1
- Subsections should be made available in an sorted order HOT 1
- migrate to gopkg.in/gcfg.v1 HOT 7
- Empty comment line causes the next line to be interpreted as comment HOT 2
- do we need to import anything? HOT 2
- config files with 'extra' content HOT 4
- Support for `-` in variable/section names HOT 7
- Writing/setting gcfg files HOT 3
- gcfg failed to get HOT 2
- sections with user-supplied variable names HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcfg.