go/scanner.Scanner.error (method)
21 uses
go/scanner (current package)
scanner.go#L66: s.error(s.offset, "illegal character NUL")
scanner.go#L71: s.error(s.offset, "illegal UTF-8 encoding")
scanner.go#L73: s.error(s.offset, "illegal byte order mark")
scanner.go#L146: func (s *Scanner) error(offs int, msg string) {
scanner.go#L154: s.error(offs, fmt.Sprintf(format, args...))
scanner.go#L196: s.error(offs, "comment not terminated")
scanner.go#L245: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L256: s.error(offs+i2, "invalid column number: "+string(text[i2:]))
scanner.go#L266: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L440: s.error(s.offset, "invalid radix point in "+litname(prefix))
scanner.go#L447: s.error(s.offset, litname(prefix)+" has no digits")
scanner.go#L466: s.error(s.offset, "exponent has no digits")
scanner.go#L469: s.error(s.offset, "hexadecimal mantissa requires a 'p' exponent")
scanner.go#L484: s.error(offs+i, "'_' must separate successive digits")
scanner.go#L572: s.error(offs, msg)
scanner.go#L584: s.error(s.offset, msg)
scanner.go#L593: s.error(offs, "escape sequence is invalid Unicode code point")
scanner.go#L611: s.error(offs, "rune literal not terminated")
scanner.go#L630: s.error(offs, "illegal rune literal")
scanner.go#L643: s.error(offs, "string literal not terminated")
scanner.go#L683: s.error(offs, "raw string literal not terminated")
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |