argument_templates

package
v2.0.0-rc.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArgumentTemplateRegex = regexp.MustCompile(`{{\s*args\.((?:[a-zA-Z0-9_]+\.?\b)+)\s*}}`)

ArgumentTemplateRegex dictates form {{args.nested.path}} with flexible whitespace surrounding args.path

Functions

func ContainsArgumentTemplateString

func ContainsArgumentTemplateString(value []byte) bool

ContainsArgumentTemplateString checks whether the value contains an argument template string Currently partially naïve. If the need arises, the more expensive regex.find could be used.

Types

type ArgumentPathValidationResult

type ArgumentPathValidationResult struct {
	ArgumentPath           []string
	FinalInputValueTypeRef int
}

func ValidateArgumentPath

func ValidateArgumentPath(definition *ast.Document, group string, fieldDefinitionRef int) (*ArgumentPathValidationResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL