1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
//go:build ignore
// +build ignore
package examples_test
import (
"crypto/rand"
"crypto/rsa"
"log"
"github.com/lestrrat-go/jwx/v2/jwa"
"github.com/lestrrat-go/jwx/v2/jwe"
"github.com/lestrrat-go/jwx/v2/jws"
)
func ExampleJWX_DecoderSettings() {
// This has not been enabled in this example, but if you want to
// parse numbers in the incoming JSON objects as json.Number
// instead of floats, you can use the following call to globally
// affect the behavior of JSON parsing.
// func init() {
// jwx.DecoderSettings(jwx.WithUseNumber(true))
// }
}
|