Advertisement
Guest User

Untitled

a guest
May 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. commitInfo, _, err := client.Repositories.ListCommits(context, "Golang-Coach", "Lessons", nil)
  2.  
  3. if err != nil {
  4. fmt.Printf("Problem in commit information %v\n", err)
  5. os.Exit(1)
  6. }
  7.  
  8. fmt.Printf("%+v\n", commitInfo[0]) // Last commit information
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement