MCPcopy
hub / github.com/gorilla/websocket / skipSpace

Function skipSpace

util.go:117–125  ·  view source on GitHub ↗

skipSpace returns a slice of the string s with all leading RFC 2616 linear whitespace removed.

(s string)

Source from the content-addressed store, hash-verified

115// skipSpace returns a slice of the string s with all leading RFC 2616 linear
116// whitespace removed.
117func skipSpace(s string) (rest string) {
118 i := 0
119 for ; i < len(s); i++ {
120 if b := s[i]; b != ' ' && b != '\t' {
121 break
122 }
123 }
124 return s[i:]
125}
126
127// nextToken returns the leading RFC 2616 token of s and the string following
128// the token.

Callers 2

tokenListContainsValueFunction · 0.85
parseExtensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected