Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/auxten/postgresql-parser
/ peek
Method
peek
pkg/sql/parser/scan.go:392–397 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
390
}
391
392
func
(s *scanner) peek() int {
393
if
s.pos >= len(s.in) {
394
return
eof
395
}
396
return
int(s.in[s.pos])
397
}
398
399
func
(s *scanner) peekN(n int) int {
400
pos := s.pos + n
Callers
11
scan
Method · 0.95
next
Method · 0.95
skipWhitespace
Method · 0.95
scanComment
Method · 0.95
scanIdent
Method · 0.95
scanNumber
Method · 0.95
scanPlaceholder
Method · 0.95
scanHexString
Method · 0.95
scanBitString
Method · 0.95
scanString
Method · 0.95
scanDollarQuotedString
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected