go-sample-webpage/vendor/github.com/lestrrat-go/jwx/formatkind_string_gen.go

29 lines
726 B
Go
Raw Normal View History

2021-11-04 01:14:51 +00:00
// Code generated by "stringer -type=FormatKind"; DO NOT EDIT.
package jwx
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[UnknownFormat-0]
_ = x[JWE-1]
_ = x[JWS-2]
_ = x[JWK-3]
_ = x[JWKS-4]
_ = x[JWT-5]
}
const _FormatKind_name = "UnknownFormatJWEJWSJWKJWKSJWT"
var _FormatKind_index = [...]uint8{0, 13, 16, 19, 22, 26, 29}
func (i FormatKind) String() string {
if i < 0 || i >= FormatKind(len(_FormatKind_index)-1) {
return "FormatKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _FormatKind_name[_FormatKind_index[i]:_FormatKind_index[i+1]]
}