Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get Rate limit information
- rateLimit, _, err := client.RateLimits(context)
- if err != nil {
- fmt.Printf("Problem in getting rate limit information %v\n", err)
- return
- }
- 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