MCPcopy Index your code
hub / github.com/1Password/for-open-source / ParseBool

Function ParseBool

script/validator.go:145–153  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

143}
144
145func ParseBool(value string) (bool, bool, string) {
146 parsedBool, err := strconv.ParseBool(value)
147
148 if err != nil {
149 return false, false, "could not be parsed into a boolean"
150 }
151
152 return true, parsedBool, ""
153}
154
155func IsPresent(value string) (bool, string, string) {
156 if value == "" {

Callers 2

boolSectionMethod · 0.85
TestParseBoolFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseBoolFunction · 0.68