...

Source file src/github.com/lestrrat-go/jwx/formatkind_string_gen.go

Documentation: github.com/lestrrat-go/jwx

     1  // Code generated by "stringer -type=FormatKind"; DO NOT EDIT.
     2  
     3  package jwx
     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[UnknownFormat-0]
    12  	_ = x[JWE-1]
    13  	_ = x[JWS-2]
    14  	_ = x[JWK-3]
    15  	_ = x[JWKS-4]
    16  	_ = x[JWT-5]
    17  }
    18  
    19  const _FormatKind_name = "UnknownFormatJWEJWSJWKJWKSJWT"
    20  
    21  var _FormatKind_index = [...]uint8{0, 13, 16, 19, 22, 26, 29}
    22  
    23  func (i FormatKind) String() string {
    24  	if i < 0 || i >= FormatKind(len(_FormatKind_index)-1) {
    25  		return "FormatKind(" + strconv.FormatInt(int64(i), 10) + ")"
    26  	}
    27  	return _FormatKind_name[_FormatKind_index[i]:_FormatKind_index[i+1]]
    28  }
    29  

View as plain text