Code Monkey home page Code Monkey logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
"float" has been removed. See http://codereview.appspot.com/4071041

Original comment by [email protected] on 20 Jan 2011 at 8:05

from goconf.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
The attached patch fixes the issue.

Original comment by [email protected] on 18 May 2011 at 12:11

Attachments:

from goconf.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.