Advertisement
Guest User

Untitled

a guest
May 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // Get Rate limit information
  2. rateLimit, _, err := client.RateLimits(context)
  3. if err != nil {
  4. fmt.Printf("Problem in getting rate limit information %v\n", err)
  5. return
  6. }
  7.  
  8. fmt.Printf("Limit: %d \nRemaining %d \n", rateLimit.Core.Limit, rateLimit.Core.Remaining ) // Last rate limit information
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement