cioc / tokbox

Tokbox Server SDK for Golang
4 stars 5 forks source link

token to Token #2

Open pjebs opened 9 years ago

pjebs commented 9 years ago

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 commented 9 years ago

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

"err" is declared twice

cioc commented 9 years ago

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.