Lines Matching refs:fmt

37 	failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
38 failNoLicenses = fmt.Errorf("No licenses found")
87 fmt.Fprintln(os.Stderr, err.Error())
94 fmt.Fprintln(os.Stderr, err.Error())
106 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
133 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
138 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
143 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
147 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
174 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
184 fmt.Fprintf(os.Stderr, "could not write output to %q: %s\n", *outputFile, err)
191 fmt.Fprintf(os.Stderr, "could not write deps to %q: %s\n", *depsFile, err)
208 return fmt.Errorf("Unable to read license metadata file(s) %q: %v\n", files, err)
219 return fmt.Errorf("Unable to read license text file(s) for %q: %v\n", files, err)
222 fmt.Fprintln(ctx.stdout, "<!DOCTYPE html>")
223 fmt.Fprintln(ctx.stdout, "<html><head>")
224 fmt.Fprintln(ctx.stdout, "<style type=\"text/css\">")
225 fmt.Fprintln(ctx.stdout, "body { padding: 2px; margin: 0; }")
226 fmt.Fprintln(ctx.stdout, "ul { list-style-type: none; margin: 0; padding: 0; }")
227 fmt.Fprintln(ctx.stdout, "li { padding-left: 1em; }")
228 fmt.Fprintln(ctx.stdout, ".file-list { margin-left: 1em; }")
229 fmt.Fprintln(ctx.stdout, "</style>")
231 fmt.Fprintf(ctx.stdout, "<title>%s</title>\n", html.EscapeString(ctx.title))
233 fmt.Fprintf(ctx.stdout, "<title>%s</title>\n", html.EscapeString(ctx.product))
235 fmt.Fprintln(ctx.stdout, "</head>")
236 fmt.Fprintln(ctx.stdout, "<body>")
239 fmt.Fprintf(ctx.stdout, " <h1>%s</h1>\n", html.EscapeString(ctx.title))
241 fmt.Fprintf(ctx.stdout, " <h1>%s</h1>\n", html.EscapeString(ctx.product))
245 fmt.Fprintln(ctx.stdout, " <ul class=\"toc\">")
248 id := fmt.Sprintf("id%d", i)
251fmt.Fprintf(ctx.stdout, " <li id=\"%s\"><strong>%s</strong>\n <ul>\n", id, html.EscapeStri…
254fmt.Fprintf(ctx.stdout, " <li><a href=\"#%s\">%s</a>\n", h.String(), html.EscapeString(stri…
256 fmt.Fprintln(ctx.stdout, " </ul>")
258 fmt.Fprintln(ctx.stdout, " </ul><!-- toc -->")
261 fmt.Fprintln(ctx.stdout, " <hr>")
263fmt.Fprintf(ctx.stdout, " <strong>%s</strong> used by:\n <ul class=\"file-list\">\n", html.Esc…
266fmt.Fprintf(ctx.stdout, " <li><a href=\"#%s\">%s</a>\n", id, html.EscapeString(ctx.strip(inst…
268 fmt.Fprintf(ctx.stdout, " <li>%s\n", html.EscapeString(ctx.strip(installPath)))
271 fmt.Fprintf(ctx.stdout, " </ul>\n")
273 fmt.Fprintf(ctx.stdout, " </ul>\n <a id=\"%s\"/><pre class=\"license-text\">", h.String())
274 fmt.Fprintln(ctx.stdout, html.EscapeString(string(ni.HashText(h))))
275 fmt.Fprintln(ctx.stdout, " </pre><!-- license-text -->")
277 fmt.Fprintln(ctx.stdout, "</body></html>")