package
0.1.7
Repository: https://github.com/polaris1119/tools.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.
ExpandPatterns returns the set of packages matched by patterns, which may have the following forms: github.com/polaris1119/tools/cmd/guru # a single package github.com/polaris1119/tools/..
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.
hasSubdir calls ctxt.HasSubdir (if not nil) or else uses the local file system to answer the question.
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.
OverlayContext overlays a build.Context with additional files from a map.
ParseFile behaves like parser.ParseFile, but uses the build context's file system interface, if any.
ParseOverlayArchive parses an archive containing Go files and their contents.
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.

# Constants

No description provided by the author

# Type aliases

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