Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*parserOpts)
func WithFunctions ¶
func WithFunctions(fns map[ast.FunctionID]*ast.FunctionDefinition) Option
func WithParamNodes ¶
func WithParamNodes() Option
func WithParams ¶
func WithParams(p groq.Params) Option
func WithVersion ¶
type ParseError ¶
ParseError represents an error during parsing.
type Version ¶
type Version int
var ( // VersionGROQ1 targets GROQ-1: https://sanity-io.github.io/GROQ/. VersionGROQ1 Version = 2 // VersionLegacyGROQ targets the legacy version of GROQ implemented by Sanity.io. VersionLegacyGROQ Version = 1 // Version1 is an alias for VersionLegacyGROQ. // Deprecated: Use VersionLegacyGROQ. Version1 Version = 1 // Version2 is an alias for VersionGROQ1. // Deprecated: Use VersionGROQ1. Version2 Version = 2 )
Click to show internal directories.
Click to hide internal directories.