ParseProjectStatus attempts to convert a string to a ProjectStatus.
(name string)
| 59 | |
| 60 | // ParseProjectStatus attempts to convert a string to a ProjectStatus. |
| 61 | func ParseProjectStatus(name string) (ProjectStatus, error) { |
| 62 | if x, ok := _ProjectStatusValue[name]; ok { |
| 63 | return x, nil |
| 64 | } |
| 65 | return ProjectStatus(0), fmt.Errorf("%s is %w", name, ErrInvalidProjectStatus) |
| 66 | } |
| 67 | |
| 68 | func (x ProjectStatus) Ptr() *ProjectStatus { |
| 69 | return &x |
searching dependent graphs…