IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
()
| 54 | // IsValid provides a quick way to determine if the typed value is |
| 55 | // part of the allowed enumerated values |
| 56 | func (x GreekGod) IsValid() bool { |
| 57 | _, err := ParseGreekGod(string(x)) |
| 58 | return err == nil |
| 59 | } |
| 60 | |
| 61 | var _GreekGodValue = map[string]GreekGod{ |
| 62 | "zeus": GreekGodZeus, |
nothing calls this directly
no test coverage detected