String implements the Stringer interface.
()
| 39 | |
| 40 | // String implements the Stringer interface. |
| 41 | func (x JobState) String() string { |
| 42 | if str, ok := _JobStateMap[x]; ok { |
| 43 | return str |
| 44 | } |
| 45 | return fmt.Sprintf("JobState(%d)", x) |
| 46 | } |
| 47 | |
| 48 | // IsValid provides a quick way to determine if the typed value is |
| 49 | // part of the allowed enumerated values |