skipSpace returns a slice of the string s with all leading RFC 2616 linear whitespace removed.
(s string)
| 115 | // skipSpace returns a slice of the string s with all leading RFC 2616 linear |
| 116 | // whitespace removed. |
| 117 | func 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. |
no outgoing calls
no test coverage detected