1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
// Code generated by "stringer -type=endianess"; DO NOT EDIT.
package protocol
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[bigEndian-0]
_ = x[littleEndian-1]
}
const _endianess_name = "bigEndianlittleEndian"
var _endianess_index = [...]uint8{0, 9, 21}
func (i endianess) String() string {
if i < 0 || i >= endianess(len(_endianess_index)-1) {
return "endianess(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _endianess_name[_endianess_index[i]:_endianess_index[i+1]]
}
|