Skip to content

Instantly share code, notes, and snippets.

@ligustah

ligustah/main.go Secret

Created January 30, 2015 12:35
Show Gist options
  • Save ligustah/bee3217f5b6c037bbf78 to your computer and use it in GitHub Desktop.
Save ligustah/bee3217f5b6c037bbf78 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"github.com/RangelReale/osin"
)
func main() {
tokenGen := &osin.AccessTokenGenDefault{}
for i := 0; i < 10; i++ {
log.Println(tokenGen.GenerateAccessToken(nil, true))
}
}
2015/01/30 13:34:17 TpQhwKh8EeSN10SKW6AeiQ TpQhwKh8EeSN2ESKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN2ESKW6AeiQ TpRI1qh8EeSN2USKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN2kSKW6AeiQ TpRI1qh8EeSN20SKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN3ESKW6AeiQ TpRI1qh8EeSN3USKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN3kSKW6AeiQ TpRI1qh8EeSN30SKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN4ESKW6AeiQ TpRI1qh8EeSN4USKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN4kSKW6AeiQ TpRI1qh8EeSN40SKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN5ESKW6AeiQ TpRI1qh8EeSN5USKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN5kSKW6AeiQ TpRI1qh8EeSN50SKW6AeiQ <nil>
2015/01/30 13:34:17 TpRI1qh8EeSN6ESKW6AeiQ TpRI1qh8EeSN6USKW6AeiQ <nil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment