String implements the Stringer interface.
()
| 61 | |
| 62 | // String implements the Stringer interface. |
| 63 | func (x Color) String() string { |
| 64 | if str, ok := _ColorMap[x]; ok { |
| 65 | return str |
| 66 | } |
| 67 | return fmt.Sprintf("Color(%d)", x) |
| 68 | } |
| 69 | |
| 70 | // IsValid provides a quick way to determine if the typed value is |
| 71 | // part of the allowed enumerated values |
no outgoing calls