compact/compact.go
func Parse(token string) (result [][]byte, e error) {
	parts := strings.Split(token, ".")

	result = make([][]byte, len(parts))

	for i, part := range parts {
		if result[i], e = base64url.Decode(part); e != nil {
			return nil, e
		}
	}

	return result, nil
}
func Parse(token string) (result [][]byte, e error) {
	parts := strings.Split(token, ".")

	result = make([][]byte, len(parts))

	for i, part := range parts {
		if result[i], e = base64url.Decode(part); e != nil {
			return nil, e
		}
	}

	return result, nil
}
func Parse ( token string ) ( result [ ] [ ] byte , e error ) { parts := strings . Split ( token , " " ) result = make ( [ ] [ ] byte , len ( parts ) ) for i , part := range parts { if result [ i ] , e = base64url . Decode ( part ) ; e != nil { return nil , e } } return result , nil }
// Parse splitting & decoding compact serialized json web token, returns slice of byte arrays, each representing part of token
Parse splitting & decoding compact serialized json web token returns slice of byte arrays each representing part of token