# Functions
BuildConfig parses and compiles the given config src and returns it.
BuildConfigValue is a convenience function that runs BuildConfig, and then converts the result into value.
BuildExprs parses and compiles the given data into a slice of values.
BuildPackage parses and compiles the given pkg, updates env with the compiled package and returns it.
GoModuleName returns the value of the module statement in the go.mod file in the directory specified by path, or an empty string otherwise.
IsDirPath returns true iff the path is absolute, or begins with a .
IsImportPath returns true iff !IsDirPath.
PackagePathSplit returns the longest common suffix in dir and path, the prefix in dir after the common suffix is removed and the portion of the of the original path that is not part of the common prefix.
ParsePackage parses the given pkg with the given parse opts, and returns a slice of parsed files, sorted by name.
RootDir returns the VDL root directory, based on the VDLROOT environment variable.
SrcDirs returns a list of package root source directories, based on the VDLPATH and VDLROOT environment variables.
TransitivePackages takes a list of paths, and returns the corresponding packages and transitive dependencies, ordered by dependency.
TransitivePackagesForConfig takes a config file represented by its file name and src data, and returns all package dependencies in transitive order.
# Constants
Produce error for unknown paths.
Silently ignore unknown paths.
# Type aliases
UnknownPathMode specifies the behavior when an unknown path is encountered.