package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

AllPackages returns the package 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 package 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.
StripVendor removes the "vendor" segment and all preceding ones from a slash-segmented path.

# Constants

AllowVendor is a synonym for go/build.AllowVendor.
No description provided by the author

# Type aliases

TagsFlag is an implementation of the flag.Value interface that parses a flag value in the same manner as go build's -tags flag and populates a []string slice.