configMenuEntry holds information for a single config menu entry.
| 71 | |
| 72 | // configMenuEntry holds information for a single config menu entry. |
| 73 | type configMenuEntry struct { |
| 74 | Name string |
| 75 | URL string |
| 76 | Current bool // Is this the currently selected config? |
| 77 | UserConfig bool // Is this a user-provided config? |
| 78 | } |
| 79 | |
| 80 | // configMenu returns a list of items to add to a menu in the web UI. |
| 81 | func configMenu(fname string, u url.URL) []configMenuEntry { |
nothing calls this directly
no outgoing calls
no test coverage detected