This is a middleware for Go-Json-Rest.
It uses jwt-go to provide a jwt authentication middleware. It provides additional handler functions to provide the login api that will generate the token and an additional refresh handler that can be used to refresh tokens.
An example can be found in the Go-Json-Rest Examples repo.