Export returns the author as a map for JSON output.
()
| 127 | |
| 128 | // Export returns the author as a map for JSON output. |
| 129 | func (a DiscussionActor) Export() map[string]any { |
| 130 | return map[string]any{ |
| 131 | "id": a.ID, |
| 132 | "login": a.Login, |
| 133 | "name": a.Name, |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // DiscussionCategory represents a discussion category within a repository. |
| 138 | type DiscussionCategory struct { |
nothing calls this directly
no outgoing calls
no test coverage detected