MCPcopy Create free account
hub / github.com/1Password/onepassword-operator / StringToBool

Function StringToBool

pkg/utils/string.go:27–33  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

25}
26
27func StringToBool(str string) (bool, error) {
28 restartDeploymentBool, err := strconv.ParseBool(strings.ToLower(str))
29 if err != nil {
30 return false, err
31 }
32 return restartDeploymentBool, nil
33}

Calls

no outgoing calls

Tested by

no test coverage detected