Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token to Token #2

Open
pjebs opened this issue Nov 10, 2014 · 2 comments
Open

token to Token #2

pjebs opened this issue Nov 10, 2014 · 2 comments

Comments

@pjebs
Copy link

pjebs commented Nov 10, 2014

For a newbie golang programmer, the documentation should be changed.

session, err := tb.NewSession("", true) //no location, peer enabled

//create a token
token, err := session.Token("publisher", "", 86400) //type publisher, no connection data

(token -> Token)

@pjebs
Copy link
Author

pjebs commented Nov 10, 2014

Also, "no new variables in left hand side of :="

"err" is declared twice

@cioc
Copy link
Owner

cioc commented Nov 10, 2014

Feel free to submit a pull request if you know how to update this. I wrote this a while ago and have not looked at it since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants