UnmarshalText implements the text unmarshaller method.
(text []byte)
| 76 | |
| 77 | // UnmarshalText implements the text unmarshaller method. |
| 78 | func (x *ProjectStatus) UnmarshalText(text []byte) error { |
| 79 | name := string(text) |
| 80 | tmp, err := ParseProjectStatus(name) |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | *x = tmp |
| 85 | return nil |
| 86 | } |
| 87 | |
| 88 | // AppendText appends the textual representation of itself to the end of b |
| 89 | // (allocating a larger slice if necessary) and returns the updated slice. |
nothing calls this directly
no test coverage detected