String returns the string representation of the Kind
()
| 71 | |
| 72 | // String returns the string representation of the Kind |
| 73 | func (k Kind) String() string { |
| 74 | switch k { |
| 75 | case KindView: |
| 76 | return "View" |
| 77 | case KindActive: |
| 78 | return "Active" |
| 79 | case KindCommitted: |
| 80 | return "Committed" |
| 81 | default: |
| 82 | return "Unknown" |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // MarshalJSON the Kind to JSON |
| 87 | func (k Kind) MarshalJSON() ([]byte, error) { |
no outgoing calls