Versions in this module Expand all Collapse all v1 v1.0.1 Nov 10, 2021 Changes in this version + const Add + const Arg + const Cmd + const Copy + const Entrypoint + const Env + const Expose + const From + const Healthcheck + const Label + const Maintainer + const Onbuild + const Run + const Shell + const StopSignal + const User + const Volume + const Workdir + var Commands = map[string]struct v1.0.0 Nov 9, 2021 Changes in this version + const DefaultEscapeToken + func BuildEnvs(env []string) map[string]string + type Command struct + Cmd string + EndLine int + Flags []string + JSON bool + Original string + StartLine int + SubCmd string + Value []string + func ParseFile(filename string) ([]Command, error) + func ParseReader(file io.Reader) ([]Command, 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 Lex struct + RawEscapes bool + RawQuotes bool + SkipUnsetEnv bool + func NewLex(escapeToken rune) *Lex + func (s *Lex) ProcessWords(word string, env []string) ([]string, 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) + type Result struct + AST *Node + EscapeToken rune + Warnings []string + func Parse(rwc io.Reader) (*Result, error) + func (r *Result) PrintWarnings(out io.Writer)