MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Get

Method Get

pkg/settings/bool.go:27–29  ·  view source on GitHub ↗

Get retrieves the bool value in the setting.

(sv *Values)

Source from the content-addressed store, hash-verified

25
26// Get retrieves the bool value in the setting.
27func (b *BoolSetting) Get(sv *Values) bool {
28 return sv.getInt64(b.slot) != 0
29}
30
31func (b *BoolSetting) String(sv *Values) string {
32 return EncodeBool(b.Get(sv))

Callers 1

StringMethod · 0.95

Calls 1

getInt64Method · 0.45

Tested by

no test coverage detected