formatkind_string_gen.go 726 B

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