wechaty/go-wechaty

View on GitHub
wechaty-puppet/filebox/type_string.go

Summary

Maintainability
A
2 hrs
Test Coverage
D
60%
// Code generated by "stringer -type=Type"; DO NOT EDIT.

package filebox

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[TypeUnknown-0]
}

const _Type_name = "TypeUnknown"

var _Type_index = [...]uint8{0, 11}

func (i Type) String() string {
    if i >= Type(len(_Type_index)-1) {
        return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
    }
    return _Type_name[_Type_index[i]:_Type_index[i+1]]
}