Documentation ¶ Index ¶ func ExtractVersion(input string) string func FindInstalled(ctx context.Context, name string) (string, error) func Install(ctx context.Context, name string) error func Uninstall(ctx context.Context, name string) error type Info func GetInfo(original string) Info Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ExtractVersion ¶ added in v0.5.0 func ExtractVersion(input string) string ExtractVersion extracts version value from the output of dpkg -s <package>. func FindInstalled ¶ func FindInstalled(ctx context.Context, name string) (string, error) func Install ¶ func Install(ctx context.Context, name string) error func Uninstall ¶ func Uninstall(ctx context.Context, name string) error Types ¶ type Info ¶ added in v0.5.0 type Info struct { Name string Version string } Info contains the package name and the package version. func GetInfo ¶ added in v0.5.0 func GetInfo(original string) Info GetInfo splits the name and version from string name=version and put the values into Info. Source Files ¶ View all Source files apt.go Click to show internal directories. Click to hide internal directories.