/
packettype_string.go
33 lines (24 loc) · 1.01 KB
/
packettype_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
/*
This file is part of go-muxrpc.
go-muxrpc is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
go-muxrpc is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with go-muxrpc. If not, see <http://www.gnu.org/licenses/>.
*/
// Code generated by "stringer -type PacketType"; DO NOT EDIT
package codec
import "fmt"
const _PacketType_name = "BufferStringJSON"
var _PacketType_index = [...]uint8{0, 6, 12, 16}
func (i PacketType) String() string {
if i >= PacketType(len(_PacketType_index)-1) {
return fmt.Sprintf("PacketType(%d)", i)
}
return _PacketType_name[_PacketType_index[i]:_PacketType_index[i+1]]
}