Versions in this module Expand all Collapse all v1 v1.1.7 Nov 5, 2025 v1.1.6 Oct 16, 2025 v1.1.5 Oct 16, 2025 v1.1.4 Oct 16, 2025 Changes in this version + const Any + const ImportKeyword + const Info + const MapKeyword + const Returns + const Service + const Syntax + const TypeKeyword + var EofToken = Token + var ErrorToken = Token + var HttpMethods = []interface + var IllegalPosition = Position + type Position struct + Column int + Filename string + Line int + func (p Position) String() string + type Token struct + Position Position + Text string + Type Type + func NewIllegalToken(b rune, pos Position) Token + func (t Token) Fork(tp Type) Token + func (t Token) Is(text ...string) bool + func (t Token) IsBaseType() bool + func (t Token) IsComment() bool + func (t Token) IsDocument() bool + func (t Token) IsEmptyString() bool + func (t Token) IsHttpMethod() bool + func (t Token) IsKeyword() bool + func (t Token) IsType(tp Type) bool + func (t Token) Line() int + func (t Token) String() string + func (t Token) Valid() bool + type Type int + const ANY + const ASSIGN + const AT_DOC + const AT_HANDLER + const AT_SERVER + const BREAK + const CASE + const CHAN + const COLON + const COMMA + const COMMENT + const CONST + const CONTINUE + const DEFAULT + const DEFER + const DOCUMENT + const DOT + const DURATION + const ELLIPSIS + const ELSE + const EOF + const FALLTHROUGH + const FOR + const FUNC + const GO + const GOTO + const IDENT + const IF + const ILLEGAL + const IMPORT + const INT + const INTERFACE + const LBRACE + const LBRACK + const LPAREN + const MAP + const MUL + const PACKAGE + const PATH + const QUO + const RANGE + const RAW_STRING + const RBRACE + const RBRACK + const RETURN + const RPAREN + const SELECT + const SEMICOLON + const STRING + const STRUCT + const SUB + const SWITCH + const TYPE + const VAR + func LookupKeyword(ident string) (Type, bool) + func (t Type) String() string v1.1.3 Apr 27, 2025 v1.1.2 Apr 25, 2025 v1.1.1 Apr 25, 2025 v1.1.0 Apr 25, 2025 v1.0.4 Apr 25, 2025 v1.0.2 Apr 25, 2025 v1.0.1 Apr 25, 2025 v1.0.0 Apr 25, 2025