Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Last active January 23, 2017 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julian-klode/ee1921b59eb261e8968597cd78775ea6 to your computer and use it in GitHub Desktop.
Save julian-klode/ee1921b59eb261e8968597cd78775ea6 to your computer and use it in GitHub Desktop.
package main
import "github.com/julian-klode/goapt"
func main() {
session := goapt.NewSession()
apt := session.Cache().Lookup("apt", "native")
cand := session.Policy().CandidateVersion(apt)
println("The current candidate for APT is:", cand.VerStr())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment