Documentation ¶
Overview ¶
andrzej lichnerowicz, unlicensed (~public domain)
andrzej lichnerowicz, unlicensed (~public domain)
Index ¶
- Variables
- func DownloadRemote(baseDir string, url string) error
- func EnsureDirectory(baseDir string) error
- func ExtractModelineOptions(buffer string) (map[string]string, error)
- func FileExists(name string) error
- func GetFileContents(name string) ([]byte, error)
- func GetTempFile() (string, error)
- func PrintCommand(command []string, isDebug bool) error
- func RemoveFile(name string) error
- func RunCommand(command []string) (string, string, error)
- type CompilerOptions
- type SourceInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCouldNotCreateDirectory = errors.New("belit/fs: could not create directory") ErrCouldNotCreateTemporaryFile = errors.New("belit/fs: could not create temporary file") ErrFileDoesNotExist = errors.New("belit/fs: file does not exist") ErrCouldNotReadFile = errors.New("belit/fs: could not read file") )
View Source
var ( ErrCouldNotOpenFile = errors.New("belit/parser: could not open file for reading") ErrCouldNotCloseScanner = errors.New("belit/parser: could not close scanner") )
View Source
var AppFS = afero.NewOsFs()
View Source
var (
ErrorModelineNotFound = errors.New("modeline not found")
)
Functions ¶
func DownloadRemote ¶
func ExtractModelineOptions ¶
ExtractModelineOptions searches throght the file in search of vim's [modeline](http://vimdoc.sourceforge.net/htmldoc/options.html#modeline) compatibile options
func FileExists ¶
func GetFileContents ¶
func GetTempFile ¶
func PrintCommand ¶
func RemoveFile ¶
Types ¶
type CompilerOptions ¶
CompilerOptions holds names of environments to look at based on file type (extension)
func GetCompilerOptions ¶
func GetCompilerOptions(filename string) (CompilerOptions, error)
GetCompilerOptions returns set of names to corresponding options based on file type
type SourceInfo ¶
func GetSources ¶
func GetSources(file string) ([]SourceInfo, error)
func GetSourcesFromBuffer ¶
func GetSourcesFromBuffer(buffer []byte) ([]SourceInfo, error)
Click to show internal directories.
Click to hide internal directories.