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

Function skipSpaces

json/parse.go:37–42  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

35}
36
37func skipSpaces(b []byte) []byte {
38 if len(b) > 0 && b[0] <= 0x20 {
39 b, _ = skipSpacesN(b)
40 }
41 return b
42}
43
44func skipSpacesN(b []byte) ([]byte, int) {
45 for i := range b {

Callers 15

encodeRawMessageMethod · 0.85
internalParseFlagsFunction · 0.85
parseObjectMethod · 0.85
parseArrayMethod · 0.85
decodeFromStringMethod · 0.85
decodeArrayMethod · 0.85
decodeSliceMethod · 0.85
decodeMapMethod · 0.85
decodeMapStringStringMethod · 0.85

Calls 1

skipSpacesNFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…