File: token_options_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 (25 lines) | stat: -rw-r--r-- 712 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
// Code generated by "stringer -type=TokenOption -output=token_options_gen.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[FlattenAudience-1]
	_ = x[MaxPerTokenOption-2]
}

const _TokenOption_name = "FlattenAudienceMaxPerTokenOption"

var _TokenOption_index = [...]uint8{0, 15, 32}

func (i TokenOption) String() string {
	i -= 1
	if i >= TokenOption(len(_TokenOption_index)-1) {
		return "TokenOption(" + strconv.FormatInt(int64(i+1), 10) + ")"
	}
	return _TokenOption_name[_TokenOption_index[i]:_TokenOption_index[i+1]]
}