Versions in this module Expand all Collapse all v0 v0.15.0 Mar 5, 2020 Changes in this version + type CreateDecl struct + func (d CreateDecl) File() (*File, error) + func (d CreateDecl) MarshalJSON() ([]byte, error) + func (d CreateDecl) Position() (token.Position, error) + func (d CreateDecl) String() string + func (d CreateDecl) Value() (string, error) + func (d CreateDecl) VirtualPaths() []string + type Decl interface + File func() (*File, error) + Position func() (token.Position, error) + Value func() (string, error) + type Decls []Decl + func Parse(her here.Info, includes ...string) (Decls, error) + func (decls Decls) Files() ([]*File, error) + type File struct + Abs string + Here here.Info + Path here.Path + func (f File) String() string + type Filer interface + Files func(map[string]string) ([]*File, error) + type HTTPDecl struct + func (d HTTPDecl) File() (*File, error) + func (d HTTPDecl) Files(virtual map[string]string) ([]*File, error) + func (d HTTPDecl) MarshalJSON() ([]byte, error) + func (d HTTPDecl) Position() (token.Position, error) + func (d HTTPDecl) String() string + func (d HTTPDecl) Value() (string, error) + type IncludeDecl struct + func NewInclude(her here.Info, inc string) (IncludeDecl, error) + func (d IncludeDecl) File() (*File, error) + func (d IncludeDecl) Files(virtual map[string]string) ([]*File, error) + func (d IncludeDecl) MarshalJSON() ([]byte, error) + func (d IncludeDecl) Position() (token.Position, error) + func (d IncludeDecl) String() string + func (d IncludeDecl) Value() (string, error) + type MkdirAllDecl struct + func (d MkdirAllDecl) File() (*File, error) + func (d MkdirAllDecl) MarshalJSON() ([]byte, error) + func (d MkdirAllDecl) Position() (token.Position, error) + func (d MkdirAllDecl) String() string + func (d MkdirAllDecl) Value() (string, error) + func (d MkdirAllDecl) VirtualPaths() []string + type OpenDecl struct + func (d OpenDecl) File() (*File, error) + func (d OpenDecl) Files(virtual map[string]string) ([]*File, error) + func (d OpenDecl) MarshalJSON() ([]byte, error) + func (d OpenDecl) Position() (token.Position, error) + func (d OpenDecl) String() string + func (d OpenDecl) Value() (string, error) + type ParsedSource struct + Ast *ast.File + FileSet *token.FileSet + func (p *ParsedSource) DeclsMap() (map[string]Decls, error) + func (p *ParsedSource) Parse() error + type Parser struct + func New(her here.Info) (*Parser, error) + func (p *Parser) Decls() (Decls, error) + func (p *Parser) DeclsMap() (map[string]Decls, error) + func (p *Parser) Parse() error + func (p *Parser) ParseDir(abs string, mode parser.Mode) ([]*ParsedSource, error) + func (p *Parser) ParseFile(abs string, mode parser.Mode) (*ParsedSource, error) + func (p *Parser) ParseSource(source Source, mode parser.Mode) (*ParsedSource, error) + type Source struct + Abs string + Here here.Info + Path here.Path + type StatDecl struct + func (d StatDecl) File() (*File, error) + func (d StatDecl) Files(virtual map[string]string) ([]*File, error) + func (d StatDecl) MarshalJSON() ([]byte, error) + func (d StatDecl) Position() (token.Position, error) + func (d StatDecl) String() string + func (d StatDecl) Value() (string, error) + type Virtualer interface + VirtualPaths func() []string + type WalkDecl struct + func (d WalkDecl) File() (*File, error) + func (d WalkDecl) Files(virtual map[string]string) ([]*File, error) + func (d WalkDecl) MarshalJSON() ([]byte, error) + func (d WalkDecl) Position() (token.Position, error) + func (d WalkDecl) String() string + func (d WalkDecl) Value() (string, error)