File: formatkind_string_gen.go

package info (click to toggle)
golang-github-lestrrat-go-jwx 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,872 kB
  • sloc: sh: 222; makefile: 86; perl: 62
file content (29 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
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
26
27
28
29
// 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[InvalidFormat-0]
	_ = x[UnknownFormat-1]
	_ = x[JWE-2]
	_ = x[JWS-3]
	_ = x[JWK-4]
	_ = x[JWKS-5]
	_ = x[JWT-6]
}

const _FormatKind_name = "InvalidFormatUnknownFormatJWEJWSJWKJWKSJWT"

var _FormatKind_index = [...]uint8{0, 13, 26, 29, 32, 35, 39, 42}

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]]
}