my-log/tmdb/type_string.go

26 lines
618 B
Go

// Code generated by "stringer -type=Type"; DO NOT EDIT.
package tmdb
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[Unknown-0]
_ = x[Movie-1]
_ = x[Series-2]
}
const _Type_name = "UnknownMovieSeries"
var _Type_index = [...]uint8{0, 7, 12, 18}
func (i Type) String() string {
idx := int(i) - 0
if i < 0 || idx >= len(_Type_index)-1 {
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Type_name[_Type_index[idx]:_Type_index[idx+1]]
}