MCPcopy Create free account
hub / github.com/brimdata/super / ParseBool

Function ParseBool

pkg/byteconv/byteconv.go:18–20  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

16}
17
18func ParseBool(b []byte) (bool, error) {
19 return strconv.ParseBool(UnsafeString(b))
20}
21
22func ParseIP(b []byte) (netip.Addr, error) {
23 return netip.ParseAddr(UnsafeString(b))

Callers 3

stringToBoolFunction · 0.92
ToBoolFunction · 0.92
appendPrimitiveMethod · 0.92

Calls 1

UnsafeStringFunction · 0.85

Tested by

no test coverage detected