github.com/lestrrat-go/jwx/v2@v2.0.21/jwt/token_options_gen.go (about)

     1  // Code generated by "stringer -type=TokenOption -output=token_options_gen.go"; DO NOT EDIT.
     2  
     3  package jwt
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[FlattenAudience-1]
    12  	_ = x[MaxPerTokenOption-2]
    13  }
    14  
    15  const _TokenOption_name = "FlattenAudienceMaxPerTokenOption"
    16  
    17  var _TokenOption_index = [...]uint8{0, 15, 32}
    18  
    19  func (i TokenOption) String() string {
    20  	i -= 1
    21  	if i >= TokenOption(len(_TokenOption_index)-1) {
    22  		return "TokenOption(" + strconv.FormatInt(int64(i+1), 10) + ")"
    23  	}
    24  	return _TokenOption_name[_TokenOption_index[i]:_TokenOption_index[i+1]]
    25  }