gravwell / gcfg

read INI-style configuration files into Go structs; supports user-defined types and subsections
https://gopkg.in/gcfg.v1
Other
0 stars 4 forks source link

add raw string (backtick) support, fix tests and import paths #1

Closed djfritz closed 4 years ago

djfritz commented 4 years ago

@traetox

The raw string support simply rewrites any backtick wrapped rvalue string as a double quoted string with padded escapes. That means things like:

`foo\dbar \t\s`

Get rewritten and handed back as:

"foo\\dbar \\t\\s"