package
2.20.0
Repository: https://github.com/google/googet.git
Documentation: pkg.go.dev

# Functions

Checksum retuns the SHA256 checksum of the provided reader.
Compare compares string versions of packages v1 to v2: -1 == v1 is less than v2 0 == v1 is equal to v2 1 == v1 is greater than v2.
ComparePriorityVersion compares (p1, v1) to (p2, v2) as priority-version tuples.
ContainsInt checks if a is in slice.
ContainsString checks if a is in slice.
Exec execs a script or binary on either Windows or Linux using the provided args.
ExtractPkgSpec pulls and unmarshals the package spec file from a reader.
MarshalPackageSpec encodes the given PkgSpec.
ParseVersion parses the string version into goospec.Version.
PkgNameSplit returns the PackageInfo from a package name.
ReadGooSpec unmarshalls and verifies a goospec file into the GooSpec struct.
ReadPackageSpec reads a PkgSpec from the given reader, which is expected to contain an uncompressed tar archive.
Run runs a command.
SortVersions sorts a list of goospec string versions.
SplitGCSUrl parses and splits a GCS URL returning if the URL belongs to a GCS object, and if so the bucket and object.
UnmarshalPackageSpec parses data and returns a PkgSpec, if it finds one.
WritePackageSpec takes a PkgSpec and writes it as a JSON file using the provided tar writer.

# Structs

ExecFile contains info involved in running a script or binary file.
GooSpec is the build specification for a package.
PackageInfo describes the name arch and version of a package.
PkgSources is a list of includes, excludes and their target in the package.
PkgSpec is an individual package specification.
RepoSpec is the repository specification of a package.
Version contains the semver version as well as the GsVer.

# Type aliases

Versions contains a list of goospec string versions.