MCPcopy Create free account
hub / github.com/segmentio/encoding / Bool

Method Bool

json/token.go:246–246  ·  view source on GitHub ↗

Bool returns a bool containing the value of the json boolean that the tokenizer is currently pointing at. This method must only be called after checking the kind of the token via a call to Kind. If the tokenizer is not positioned on a boolean, the behavior is undefined.

()

Source from the content-addressed store, hash-verified

244//
245// If the tokenizer is not positioned on a boolean, the behavior is undefined.
246func (t *Tokenizer) Bool() bool { return t.flags.kind() == True }
247
248// Int returns a byte slice containing the value of the json number that the
249// tokenizer is currently pointing at.

Callers 2

encodeBoolFunction · 0.45
isTrueFunction · 0.45

Calls 1

kindMethod · 0.80

Tested by

no test coverage detected