retryon_string.go (10 lines of code) (raw):

// generated by stringer -type=RetryOn; DO NOT EDIT package tchannel import "fmt" const _RetryOn_name = "RetryDefaultRetryConnectionErrorRetryNeverRetryNonIdempotentRetryUnexpectedRetryIdempotent" var _RetryOn_index = [...]uint8{0, 12, 32, 42, 60, 75, 90} func (i RetryOn) String() string { if i < 0 || i+1 >= RetryOn(len(_RetryOn_index)) { return fmt.Sprintf("RetryOn(%d)", i) } return _RetryOn_name[_RetryOn_index[i]:_RetryOn_index[i+1]] }