Documentation
¶
Index ¶
- Variables
- func Build(fsys fs.FS, options *Options) error
- func GetFilePlatform(file string) platform.Platform
- func GetFiles(fsys fs.FS, pt platform.Platform, suffix ast.FileExtension) ([]string, error)
- func Parse(fsys fs.FS, files []string) ([]ast.StmtGlobal, []ast.Stmt, error)
- type Imports
- type Options
- type PkgFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidDir = errors.New("invalid input dir") ErrNoInputFile = errors.New("no input file") )
View Source
var ( ErrDuplicateDescription = errors.New("duplicate description") ErrDuplicateImport = errors.New("duplicate import") ErrDuplicateName = errors.New("duplicate name") ErrEmptyName = errors.New("name must be non empty") ErrImportCycle = errors.New("import cycle") ErrInvalidToken = errors.New("invalid token") ErrMissingIdentifier = errors.New("missing identifier") ErrMissingPackage = errors.New("missing package name") ErrMissingString = errors.New("missing string") )
Functions ¶
func GetFilePlatform ¶
GetFilePlatform returns the platform for the given file.
Types ¶
Click to show internal directories.
Click to hide internal directories.