Implement String for ForwardType
This commit is contained in:
parent
756c605365
commit
dba4311d8a
16
adb/forward_string.go
Normal file
16
adb/forward_string.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Code generated by "stringer -type=ForwardType"; DO NOT EDIT
|
||||
|
||||
package adb
|
||||
|
||||
import "fmt"
|
||||
|
||||
const _ForwardType_name = "InvalidTCPLocal"
|
||||
|
||||
var _ForwardType_index = [...]uint8{0, 7, 10, 15}
|
||||
|
||||
func (i ForwardType) String() string {
|
||||
if i < 0 || i >= ForwardType(len(_ForwardType_index)-1) {
|
||||
return fmt.Sprintf("ForwardType(%d)", i)
|
||||
}
|
||||
return _ForwardType_name[_ForwardType_index[i]:_ForwardType_index[i+1]]
|
||||
}
|
Loading…
Reference in a new issue