github.com/amitbet/vnc2video@v0.0.0-20190616012314-9d50b9dab1d9/securitytype_string.go (about) 1 // Code generated by "stringer -type=SecurityType"; DO NOT EDIT. 2 3 package vnc2video 4 5 import "fmt" 6 7 const ( 8 _SecurityType_name_0 = "SecTypeUnknownSecTypeNoneSecTypeVNC" 9 _SecurityType_name_1 = "SecTypeTight" 10 _SecurityType_name_2 = "SecTypeVeNCrypt" 11 ) 12 13 var ( 14 _SecurityType_index_0 = [...]uint8{0, 14, 25, 35} 15 _SecurityType_index_1 = [...]uint8{0, 12} 16 _SecurityType_index_2 = [...]uint8{0, 15} 17 ) 18 19 func (i SecurityType) String() string { 20 switch { 21 case 0 <= i && i <= 2: 22 return _SecurityType_name_0[_SecurityType_index_0[i]:_SecurityType_index_0[i+1]] 23 case i == 16: 24 return _SecurityType_name_1 25 case i == 19: 26 return _SecurityType_name_2 27 default: 28 return fmt.Sprintf("SecurityType(%d)", i) 29 } 30 }