github.com/sandwich-go/boost@v1.3.29/xencoding/encrypt/type_string.go (about)

     1  // Code generated by "stringer -type=Type"; DO NOT EDIT.
     2  
     3  package encrypt
     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[NoneType-0]
    12  	_ = x[AESType-1]
    13  }
    14  
    15  const _Type_name = "NoneTypeAESType"
    16  
    17  var _Type_index = [...]uint8{0, 8, 15}
    18  
    19  func (i Type) String() string {
    20  	if i >= Type(len(_Type_index)-1) {
    21  		return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
    22  	}
    23  	return _Type_name[_Type_index[i]:_Type_index[i+1]]
    24  }