package parser

import "github.com/markbates/pkger/parser"

Index

Types

type CreateDecl

type CreateDecl struct {
	// contains filtered or unexported fields
}

func (CreateDecl) File

func (d CreateDecl) File() (*File, error)

func (CreateDecl) MarshalJSON

func (d CreateDecl) MarshalJSON() ([]byte, error)

func (CreateDecl) Pos

func (d CreateDecl) Pos() (token.Pos, error)

func (CreateDecl) String

func (d CreateDecl) String() string

func (CreateDecl) Value

func (d CreateDecl) Value() (string, error)

func (CreateDecl) VirtualPaths

func (d CreateDecl) VirtualPaths() []string

type Decl

type Decl interface {
	File() (*File, error)
	Pos() (token.Pos, error)
	Value() (string, error)
}

type Decls

type Decls []Decl

func Parse

func Parse(her here.Info) (Decls, error)

func (Decls) Files

func (decls Decls) Files() ([]*File, error)

type File

type File struct {
	Abs  string // full path on disk to file
	Path here.Path
	Here here.Info
}

func (File) String

func (f File) String() string

type Filer

type Filer interface {
	Files(map[string]string) ([]*File, error)
}

type HTTPDecl

type HTTPDecl struct {
	// contains filtered or unexported fields
}

func (HTTPDecl) File

func (d HTTPDecl) File() (*File, error)

func (HTTPDecl) Files

func (d HTTPDecl) Files(virtual map[string]string) ([]*File, error)

func (HTTPDecl) MarshalJSON

func (d HTTPDecl) MarshalJSON() ([]byte, error)

func (HTTPDecl) Pos

func (d HTTPDecl) Pos() (token.Pos, error)

func (HTTPDecl) String

func (d HTTPDecl) String() string

func (HTTPDecl) Value

func (d HTTPDecl) Value() (string, error)

type MkdirAllDecl

type MkdirAllDecl struct {
	// contains filtered or unexported fields
}

func (MkdirAllDecl) File

func (d MkdirAllDecl) File() (*File, error)

func (MkdirAllDecl) MarshalJSON

func (d MkdirAllDecl) MarshalJSON() ([]byte, error)

func (MkdirAllDecl) Pos

func (d MkdirAllDecl) Pos() (token.Pos, error)

func (MkdirAllDecl) String

func (d MkdirAllDecl) String() string

func (MkdirAllDecl) Value

func (d MkdirAllDecl) Value() (string, error)

func (MkdirAllDecl) VirtualPaths

func (d MkdirAllDecl) VirtualPaths() []string

type OpenDecl

type OpenDecl struct {
	// contains filtered or unexported fields
}

func (OpenDecl) File

func (d OpenDecl) File() (*File, error)

func (OpenDecl) Files

func (d OpenDecl) Files(virtual map[string]string) ([]*File, error)

func (OpenDecl) MarshalJSON

func (d OpenDecl) MarshalJSON() ([]byte, error)

func (OpenDecl) Pos

func (d OpenDecl) Pos() (token.Pos, error)

func (OpenDecl) String

func (d OpenDecl) String() string

func (OpenDecl) Value

func (d OpenDecl) Value() (string, error)

type StatDecl

type StatDecl struct {
	// contains filtered or unexported fields
}

func (StatDecl) File

func (d StatDecl) File() (*File, error)

func (StatDecl) Files

func (d StatDecl) Files(virtual map[string]string) ([]*File, error)

func (StatDecl) MarshalJSON

func (d StatDecl) MarshalJSON() ([]byte, error)

func (StatDecl) Pos

func (d StatDecl) Pos() (token.Pos, error)

func (StatDecl) String

func (d StatDecl) String() string

func (StatDecl) Value

func (d StatDecl) Value() (string, error)

type Virtualer

type Virtualer interface {
	VirtualPaths() []string
}

type WalkDecl

type WalkDecl struct {
	// contains filtered or unexported fields
}

func (WalkDecl) File

func (d WalkDecl) File() (*File, error)

func (WalkDecl) Files

func (d WalkDecl) Files(virtual map[string]string) ([]*File, error)

func (WalkDecl) MarshalJSON

func (d WalkDecl) MarshalJSON() ([]byte, error)

func (WalkDecl) Pos

func (d WalkDecl) Pos() (token.Pos, error)

func (WalkDecl) String

func (d WalkDecl) String() string

func (WalkDecl) Value

func (d WalkDecl) Value() (string, error)

Source Files

create.go decl.go file.go http.go mkdir.go open.go parser.go stat.go visitor.go walk.go

Version
v0.8.1
Published
Oct 25, 2019
Platform
js/wasm
Imports
14 packages
Last checked
12 hours ago

Tools for package owners.