Versions in this module Expand all Collapse all v1 v1.2.0 Sep 24, 2018 v1.1.0 May 17, 2018 Changes in this version + type Argument struct + Name Ident + Value Literal + type ArgumentList []Argument + func ParseArguments(l *Lexer) ArgumentList + func (l ArgumentList) Get(name string) (Literal, bool) + func (l ArgumentList) MustGet(name string) Literal + type BasicLit struct + Loc errors.Location + Text string + Type rune + func (lit *BasicLit) Location() errors.Location + func (lit *BasicLit) String() string + func (lit *BasicLit) Value(vars map[string]interface{}) interface{} + type Directive struct + Args ArgumentList + Name Ident + type DirectiveList []*Directive + func ParseDirectives(l *Lexer) DirectiveList + func (l DirectiveList) Get(name string) *Directive + type Ident struct + Loc errors.Location + Name string + type InputValue struct + Default Literal + Desc string + Loc errors.Location + Name Ident + Type Type + TypeLoc errors.Location + func ParseInputValue(l *Lexer) *InputValue + type InputValueList []*InputValue + func (l InputValueList) Get(name string) *InputValue + type Lexer struct + func NewLexer(s string) *Lexer + func (l *Lexer) CatchSyntaxError(f func()) (errRes *errors.QueryError) + func (l *Lexer) Consume() + func (l *Lexer) ConsumeIdent() string + func (l *Lexer) ConsumeIdentWithLoc() Ident + func (l *Lexer) ConsumeKeyword(keyword string) + func (l *Lexer) ConsumeLiteral() *BasicLit + func (l *Lexer) ConsumeToken(expected rune) + func (l *Lexer) DescComment() string + func (l *Lexer) Location() errors.Location + func (l *Lexer) Peek() rune + func (l *Lexer) SyntaxError(message string) + type List struct + OfType Type + func (*List) Kind() string + func (t *List) String() string + type ListLit struct + Entries []Literal + Loc errors.Location + func (lit *ListLit) Location() errors.Location + func (lit *ListLit) String() string + func (lit *ListLit) Value(vars map[string]interface{}) interface{} + type Literal interface + Location func() errors.Location + String func() string + Value func(vars map[string]interface{}) interface{} + func ParseLiteral(l *Lexer, constOnly bool) Literal + type NonNull struct + OfType Type + func (*NonNull) Kind() string + func (t *NonNull) String() string + type NullLit struct + Loc errors.Location + func (lit *NullLit) Location() errors.Location + func (lit *NullLit) String() string + func (lit *NullLit) Value(vars map[string]interface{}) interface{} + type ObjectLit struct + Fields []*ObjectLitField + Loc errors.Location + func (lit *ObjectLit) Location() errors.Location + func (lit *ObjectLit) String() string + func (lit *ObjectLit) Value(vars map[string]interface{}) interface{} + type ObjectLitField struct + Name Ident + Value Literal + type Resolver func(name string) Type + type Type interface + Kind func() string + String func() string + func ParseType(l *Lexer) Type + func ResolveType(t Type, resolver Resolver) (Type, *errors.QueryError) + type TypeName struct + func (*TypeName) Kind() string + func (*TypeName) String() string + type Variable struct + Loc errors.Location + Name string + func (v *Variable) Location() errors.Location + func (v Variable) String() string + func (v Variable) Value(vars map[string]interface{}) interface{}