Go stdlib package — text/scanner. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Position.IsValid()NeutralPosition.IsValid() bool
IsValid reports whether the position is valid.
.Scanner.Init()NeutralScanner.Init(src io.Reader) *Scanner
Init initializes a Scanner with a new source and returns s.
.Scanner.Next()NeutralScanner.Next() rune
Next reads and returns the next Unicode character.
.Scanner.Peek()NeutralScanner.Peek() rune
Peek returns the next Unicode character in the source without advancing
.Scanner.Pos()NeutralScanner.Pos() Position
Pos returns the position of the character immediately after
.Scanner.Scan()NeutralScanner.Scan() rune
Scan reads the next token or Unicode character from source and returns it.
.Scanner.TokenText()NeutralScanner.TokenText() string
TokenText returns the string corresponding to the most recently scanned token.
.TokenString()NeutralTokenString(tok rune) string
TokenString returns a printable string for a token or Unicode character.
| FQN | Field | |
|---|---|---|
| text/scanner | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # text/scanner