Debian Codegraph @

keyfile/boolean.go

raw
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 }