accessor
This commit is contained in:
@@ -26,8 +26,17 @@ var str = [...]string{
|
||||
"workflow",
|
||||
}
|
||||
|
||||
func ToString(r ResourceType) string {
|
||||
return str[r]
|
||||
func FromInt(i int) string {
|
||||
return str[i]
|
||||
}
|
||||
|
||||
func (d ResourceType) String() string {
|
||||
return str[d]
|
||||
}
|
||||
|
||||
// EnumIndex - Creating common behavior - give the type a EnumIndex functio
|
||||
func (d ResourceType) EnumIndex() int {
|
||||
return int(d)
|
||||
}
|
||||
|
||||
type Resource interface {
|
||||
|
||||
Reference in New Issue
Block a user