func (t Type) String() string {
	switch t {
	case FailureType:
		return "Failure"
	case BackupType:
		return "Backup"
	}
	return ""
}
String prints human readable information.
package retry
import (
	"fmt"
)
type Type int
const (
	FailureType Type = iota
	BackupType
)