MCPcopy
hub / github.com/dreadl0ck/netcap / Bool

Method Bool

encoder/encoder.go:146–151  ·  view source on GitHub ↗

Bool handles encoding of boolean values to numeric format.

(b bool)

Source from the content-addressed store, hash-verified

144
145// Bool handles encoding of boolean values to numeric format.
146func (m *ValueEncoder) Bool(b bool) string {
147 if b {
148 return valueTrue
149 }
150 return valueFalse
151}
152
153// Float64 handles encoding of 64bit float values according to the ValueEncoder configuration.
154func (m *ValueEncoder) Float64(field string, val float64) string {

Callers 15

EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80
EncodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected