MCPcopy
hub / github.com/tailscale/tailscale / Get

Method Get

types/opt/bool.go:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47func (b *Bool) Clear() { *b = "" }
48
49func (b Bool) Get() (v bool, ok bool) {
50 switch b {
51 case "true":
52 return true, true
53 case "false":
54 return false, true
55 default:
56 return false, false
57 }
58}
59
60// Scan implements database/sql.Scanner.
61func (b *Bool) Scan(src any) error {

Callers 1

EqualBoolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected