package
0.0.0-20190322182713-bf6f0a60fce1
Repository: https://github.com/llvm-mirror/llgo.git
Documentation: pkg.go.dev
# Functions
AllPackages returns the import path of each Go package in any source directory of the specified build context (e.g.
ContainingPackage returns the package containing filename.
FakeContext returns a build.Context for the fake file tree specified by pkgs, which maps package import paths to a mapping from file base names to contents.
FileExists returns true if the specified file exists, using the build context's file system interface.
ForEachPackage calls the found function with the import path of each Go package it finds in any source directory of the specified build context (e.g.
IsAbsPath behaves like filepath.IsAbs, but uses the build context's file system interface, if any.
IsDir behaves like os.Stat plus IsDir, but uses the build context's file system interface, if any.
JoinPath behaves like filepath.Join, but uses the build context's file system interface, if any.
OpenFile behaves like os.Open, but uses the build context's file system interface, if any.
ParseFile behaves like parser.ParseFile, but uses the build context's file system interface, if any.
ReadDir behaves like ioutil.ReadDir, but uses the build context's file system interface, if any.
SplitPathList behaves like filepath.SplitList, but uses the build context's file system interface, if any.