Here you will find bits and pieces of code explaining how to perform certain Javascript Object Signing and Encryption (JOSE) operations using https://github.com/lestrrat-go/jwx for Go.
If you would rather see code, try the examples directory