Versions in this module Expand all Collapse all v0 v0.17.19 Apr 6, 2022 Changes in this version + func FreeNode(n *Node) + type Arg struct + Name string + Val *Node + type Directive struct + Args []Arg + Name string + type Field struct + Alias string + Args []Arg + Children []int32 + Directives []Directive + ID int32 + Name string + ParentID int32 + Type FieldType + type FieldType int8 + const FieldKeyword + const FieldMember + const FieldUnion + func (i FieldType) String() string + type Fragment struct + Fields []Field + Name string + On string + func ParseFragment(fragment string, fetchFrag func(name string) (string, error)) (Fragment, error) + type MType int8 + func (i MType) String() string + type Node struct + CMap map[string]*Node + Children []*Node + Name string + Parent *Node + Type ParserType + Val string + func ParseArgValue(argVal string, json bool) (*Node, error) + func (n *Node) Free() + func (n *Node) Reset() + type Operation struct + Args []Arg + Directives []Directive + Fields []Field + Name string + Type ParserType + func Parse(gql []byte, fetchFrag func(name string) (string, error)) (Operation, error) + type Parser struct + type ParserType int8 + const NodeBool + const NodeList + const NodeNum + const NodeObj + const NodeStr + const NodeVar + const OpMutate + const OpQuery + const OpSub + func (i ParserType) String() string + type Pos int + type Stack struct + func NewStack() *Stack + func (s *Stack) Len() int + func (s *Stack) Peek() int32 + func (s *Stack) Pop() int32 + func (s *Stack) Push(value int32)