-
Notifications
You must be signed in to change notification settings - Fork 5
/
alg_string.go
35 lines (29 loc) · 907 Bytes
/
alg_string.go
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
30
31
32
33
34
35
// Code generated by "stringer -type Algorithm -output alg_string.go ."; DO NOT EDIT.
package jwt
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[NONE-0]
_ = x[HS256-1]
_ = x[HS384-2]
_ = x[HS512-3]
_ = x[RS256-4]
_ = x[RS384-5]
_ = x[RS512-6]
_ = x[ES256-7]
_ = x[ES384-8]
_ = x[ES512-9]
_ = x[PS256-10]
_ = x[PS384-11]
_ = x[PS512-12]
}
const _Algorithm_name = "NONEHS256HS384HS512RS256RS384RS512ES256ES384ES512PS256PS384PS512"
var _Algorithm_index = [...]uint8{0, 4, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64}
func (i Algorithm) String() string {
if i >= Algorithm(len(_Algorithm_index)-1) {
return "Algorithm(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Algorithm_name[_Algorithm_index[i]:_Algorithm_index[i+1]]
}