This is useful in a project of mine, so I'm just seeing if you'd be ...
14 years, 4 months ago
(2009-12-14 20:37:03 UTC)
#2
This is useful in a project of mine, so I'm just seeing if you'd be interested
in adding it to go. If you are, I'll add some test cases and other cleanup.
I'm not sure what to do about this. There are so many different config file ...
14 years, 4 months ago
(2009-12-16 08:52:37 UTC)
#3
I'm not sure what to do about this.
There are so many different config file formats
and so few standards. We can't reasonably add
support for them all, though I think the ones that
have standards and implementations in multiple
languages are worth pursuing. Unfortunately,
those are the complicated ones.
I've just been using raw JSON files to avoid these
issues, but I understand that's not really a tenable
long-term solution.
If the ini parser is general enough, it can be used to support most "property=value" ...
14 years, 4 months ago
(2009-12-16 18:36:44 UTC)
#4
If the ini parser is general enough, it can be used to support most
"property=value" types like windows ini files, python ini files (using
the ConfigParser module), and even java property files. It seems like
it would be a pretty useful module.
Besides xml and json, Yaml is definitely worth pursuing, but it's more
tricky to implement. I needed something simple for my other go project
(web.go), so ini files seemed like the best answer.
- Mike
On Wed, Dec 16, 2009 at 12:52 AM, <rsc@golang.org> wrote:
> I'm not sure what to do about this.
> There are so many different config file formats
> and so few standards. We can't reasonably add
> support for them all, though I think the ones that
> have standards and implementations in multiple
> languages are worth pursuing. Unfortunately,
> those are the complicated ones.
>
> I've just been using raw JSON files to avoid these
> issues, but I understand that's not really a tenable
> long-term solution.
>
> http://codereview.appspot.com/178041
>
Issue 178041: code review 178041: An ini-file parser for go
Created 14 years, 4 months ago by hoisie
Modified 4 years, 6 months ago
Reviewers:
Base URL:
Comments: 0