goadb/devicestate_string.go

17 lines
432 B
Go
Raw Normal View History

2016-05-22 15:10:50 +00:00
// Code generated by "stringer -type=DeviceState"; DO NOT EDIT
package adb
import "fmt"
const _DeviceState_name = "StateDisconnectedStateOfflineStateOnline"
var _DeviceState_index = [...]uint8{0, 17, 29, 40}
func (i DeviceState) String() string {
2016-05-22 15:10:50 +00:00
if i < 0 || i >= DeviceState(len(_DeviceState_index)-1) {
return fmt.Sprintf("DeviceState(%d)", i)
}
return _DeviceState_name[_DeviceState_index[i]:_DeviceState_index[i+1]]
}