-
Notifications
You must be signed in to change notification settings - Fork 20
/
port_string.go
38 lines (33 loc) · 947 Bytes
/
port_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by "stringer -type=port"; DO NOT EDIT.
package cmd
import "strconv"
const _port_name = "daytimeftpsshtelnetsmtptimewhoisdnstftpgopherhttpkerberosnicsftpntpimapsnmpirchttpsrdpminecraft"
var _port_map = map[port]string{
13: _port_name[0:7],
21: _port_name[7:10],
22: _port_name[10:13],
23: _port_name[13:19],
25: _port_name[19:23],
37: _port_name[23:27],
43: _port_name[27:32],
53: _port_name[32:35],
69: _port_name[35:39],
70: _port_name[39:45],
80: _port_name[45:49],
88: _port_name[49:57],
101: _port_name[57:60],
115: _port_name[60:64],
123: _port_name[64:67],
143: _port_name[67:71],
161: _port_name[71:75],
194: _port_name[75:78],
443: _port_name[78:83],
3389: _port_name[83:86],
25565: _port_name[86:95],
}
func (i port) String() string {
if str, ok := _port_map[i]; ok {
return str
}
return "port(" + strconv.FormatInt(int64(i), 10) + ")"
}