Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const DefaultEscapeToken + func ChompHeredocContent(src string) string + func WithLocation(err error, location []Range) error + type Directive struct + Location []Range + Name string + Value string + type DirectiveParser struct + func (d *DirectiveParser) ParseAll(data []byte) ([]*Directive, error) + func (d *DirectiveParser) ParseLine(line []byte) (*Directive, error) + type ErrorLocation struct + Location []Range + func (e *ErrorLocation) Unwrap() error + type Heredoc struct + Chomp bool + Content string + Expand bool + FileDescriptor uint + Name string + func MustParseHeredoc(src string) *Heredoc + func ParseHeredoc(src string) (*Heredoc, error) + type Node struct + Attributes map[string]bool + Children []*Node + EndLine int + Flags []string + Heredocs []Heredoc + Next *Node + Original string + PrevComment []string + StartLine int + Value string + func (node *Node) AddChild(child *Node, startLine, endLine int) + func (node *Node) Dump() string + func (node *Node) Location() []Range + type Position struct + Character int + Line int + type Range struct + End Position + Start Position + func DetectSyntax(dt []byte) (string, string, []Range, bool) + type Result struct + AST *Node + EscapeToken rune + Warnings []Warning + func Parse(rwc io.Reader) (*Result, error) + func (r *Result) PrintWarnings(out io.Writer) + type Warning struct + Detail [][]byte + Location *Range + Short string + URL string