☰
Debian Codegraph
@
0.0~git20181125.edd15b8-2
/
/
keyfile
/
boolean.go
☽
☼
keyfile/boolean.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
// Bool returns the value for group 'g' and key 'k' as a bool.
8
func (kf *KeyFile) Bool(g, k string) (bool, error) {
9
return strconv.ParseBool(kf.Value(g, k))
10
}