Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. package main
  2.  
  3. import "github.com/julian-klode/goapt"
  4.  
  5. func main() {
  6. goapt.InitConfig()
  7. goapt.InitSystem()
  8.  
  9. cache := goapt.NewCache()
  10.  
  11. apt := cache.Lookup("apt", "native")
  12. cand := cache.Policy().CandidateVersion(apt)
  13.  
  14. println("The current candidate for APT is:", cand.VerStr())
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement