☰
Debian Codegraph
@
0.0~git20181125.edd15b8-2
/
/
keyfile
/
number.go
☽
☼
keyfile/number.go
code
plain
raw
BSD-3-clause
2013-2018 Ryan Koesters <
[email protected]
>
debian/copyright
1
package keyfile
2
3
import (
4
"strconv"
5
)
6
7
// Number returns the value for group 'g' and key 'k' as a float64.
8
func (kf *KeyFile) Number(g, k string) (float64, error) {
9
return strconv.ParseFloat(kf.Value(g, k), 64)
10
}