]> git.lizzy.rs Git - mt.git/blob - authmethods_string.go
Add WaitGroup to SerializePkt
[mt.git] / authmethods_string.go
1 // Code generated by "stringer -type AuthMethods"; DO NOT EDIT.
2
3 package mt
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[LegacyPasswd-1]
12         _ = x[SRP-2]
13         _ = x[FirstSRP-4]
14 }
15
16 const (
17         _AuthMethods_name_0 = "LegacyPasswdSRP"
18         _AuthMethods_name_1 = "FirstSRP"
19 )
20
21 var (
22         _AuthMethods_index_0 = [...]uint8{0, 12, 15}
23 )
24
25 func (i AuthMethods) String() string {
26         switch {
27         case 1 <= i && i <= 2:
28                 i -= 1
29                 return _AuthMethods_name_0[_AuthMethods_index_0[i]:_AuthMethods_index_0[i+1]]
30         case i == 4:
31                 return _AuthMethods_name_1
32         default:
33                 return "AuthMethods(" + strconv.FormatInt(int64(i), 10) + ")"
34         }
35 }