func createToken() jwt.JWT {
	claims := jwt.NewClaims()
	claims.SetSubject("1234567890")
	claims.Set("name", "John Doe")
	claims.Set("admin", true)
	token, err := jwt.Encode(claims, []byte("secret"), jwt.HS512)
	if err != nil {
		panic(err)
	}
	return token
}
// createToken creates a test token.
createToken creates a test token.
// createToken creates a test token .
func createToken() jwt.JWT {
	claims := jwt.NewClaims()
	claims.SetSubject("1234567890")
	claims.Set("name", "John Doe")
	claims.Set("admin", true)
	token, err := jwt.Encode(claims, []byte("secret"), jwt.HS512)
	if err != nil {
		panic(err)
	}
	return token
}
func createToken ( ) jwt . JWT { claims := jwt . NewClaims ( ) claims . SetSubject ( " " ) claims . Set ( " " , " " ) claims . Set ( " " , true ) token , err := jwt . Encode ( claims , [ ] byte ( " " ) , jwt . HS512 ) if err != nil { panic ( err ) } return token }
createToken creates a test token.
createToken creates a test token .