newFormat returns a Format for rendering using a searchContext.
(source string)
| 19 | |
| 20 | // newFormat returns a Format for rendering using a searchContext. |
| 21 | func newFormat(source string) formatter.Format { |
| 22 | switch source { |
| 23 | case "", formatter.TableFormatKey: |
| 24 | return defaultSearchTableFormat |
| 25 | } |
| 26 | return formatter.Format(source) |
| 27 | } |
| 28 | |
| 29 | // formatWrite writes the context. |
| 30 | func formatWrite(fmtCtx formatter.Context, results client.ImageSearchResult) error { |
no outgoing calls
searching dependent graphs…