Comments (7)
"float" has been removed. See http://codereview.appspot.com/4071041
Original comment by [email protected]
on 20 Jan 2011 at 8:05
from goconf.
Work around would be editing get.go yourself. Change the GetFloat function at
line 162 in get.go with the following:
{{{
// GetFloat has the same behaviour as GetString but converts the response to
float.
func (c *ConfigFile) GetFloat(section string, option string) (value float32,
err os.Error) {
sv, err := c.GetString(section, option)
if err == nil {
value, err = strconv.Atof32(sv)
if err != nil {
err = GetError{CouldNotParse, "float", sv, section, option}
}
}
return value, err
}
}}}
Original comment by [email protected]
on 20 Jan 2011 at 11:11
from goconf.
patched in http://code.google.com/r/sorosj-goconf/
I used float64 so it will be big enough for any float you'd want
Original comment by [email protected]
on 23 Jan 2011 at 7:33
from goconf.
The attached patch fixes the issue.
Original comment by [email protected]
on 18 May 2011 at 12:11
Attachments:
from goconf.
Attached patch has fixes for additional changes to the "os" package.
Please apply!
Original comment by [email protected]
on 4 Jun 2011 at 3:05
Attachments:
from goconf.
Additionally, I understand how maintaining a package can get a bit onerous, but
if you considered moving this to GitHub it will become a lot easier to accept
contributions.
Original comment by [email protected]
on 4 Jun 2011 at 3:08
from goconf.
This issue was closed by revision 2eb26b86ef3e.
Original comment by [email protected]
on 27 Jun 2011 at 3:04
- Changed state: Fixed
from goconf.
Related Issues (20)
- Fixed issues with compile HOT 1
- require build on new go HOT 1
- Tests panic for no good reason HOT 2
- Can't import after goinstall HOT 1
- Addition of GetInt64
- does not compile with go weekly HOT 1
- Go 1 compatable HOT 1
- Patch for weekly.2012-03-04 HOT 1
- os.Error removed in Go 1 HOT 1
- Test failure in Go 1: slice bounds out of range HOT 1
- Update to Go 1 HOT 1
- Name cleanup HOT 1
- GetOptions seems to be returning default section options twice
- DefaultSection is not used everywhere where "default" was mentioned.
- Changes to printing in next release cause a few issues HOT 4
- Subdirectory name of source code HOT 1
- GetError when nothing defined on a section HOT 2
- Breaks on last release HOT 1
- Makefile fix HOT 2
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 goconf.