Documentation ¶
Index ¶
- func CloseIO(in io.Closer)
- func FileExists(filename string) bool
- func GetAllPackagesUnderDirectory(pattern string) []string
- func GetGoFiles(filenames ...string) ([]string, error)
- func GetGoFilesFromCurrentDir() ([]string, error)
- func GetGoFilesFromDir(dirname string) ([]string, error)
- func GetGoFilesFromDirectoryRecursive(dirname string) ([]string, error)
- func GetLineBoundary(source []byte, pos token.Pos) (int, int)
- func GoFmt(codeIn []byte) ([]byte, error)
- func GoImports(fileName string, codeIn []byte) ([]byte, error)
- func IsDir(filename string) bool
- func LogError(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists returns true if the filename exists and false otherwise.
func GetAllPackagesUnderDirectory ¶
GetAllPackagesUnderDirectory is like allPackages but is passed a pattern beginning ./ or ../, meaning it should scan the tree rooted at the given directory. There are sometimes ... in the pattern too.
func GetGoFiles ¶
GetGoFiles returns all the go files from those files supplied
func GetGoFilesFromCurrentDir ¶
GetGoFilesFromCurrentDir returns all the Go files in the current dir
func GetGoFilesFromDir ¶
GetGoFilesFromDir returns all the Go files in the supplied dir
func GetGoFilesFromDirectoryRecursive ¶
GetGoFilesFromDirectoryRecursive returns all the Go files from the supplied directory and it's children
func GetLineBoundary ¶
GetLineBoundary will return the start and end position of a line containing position pos NOTE: this method with panic if an invalid position is supplied
Types ¶
This section is empty.