You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.5 KiB

  1. {{define "Head"}}<title>{{.pdoc.PageName}} tools - GoDoc</title><meta name="robots" content="NOINDEX, NOFOLLOW">{{end}}
  2. {{define "Body"}}
  3. {{template "ProjectNav" $}}
  4. <h2>Tools for {{$.pdoc.PageName}}</h2>
  5. <h3>Badge</h3>
  6. <p><a href="{{.uri}}"><img src="{{.uri}}?status.svg" alt="GoDoc"></a>
  7. <p>Use one of the snippets below to add a link to GoDoc from your project
  8. website or README file:</a>
  9. <h5>HTML</h5>
  10. <input type="text" value='<a href="{{.uri}}"><img src="{{.uri}}?status.svg" alt="GoDoc"></a>' class="click-select form-control">
  11. <h5>Markdown</h5>
  12. <input type="text" value="[![GoDoc]({{.uri}}?status.svg)]({{.uri}})" class="click-select form-control">
  13. {{if .pdoc.Name}}
  14. <h3>Lint</h3>
  15. <form name="x-lint" method="POST" action="http://go-lint.appspot.com/-/refresh"><input name="importPath" type="hidden" value="{{.pdoc.ImportPath}}"></form>
  16. <p><a href="javascript:document.getElementsByName('x-lint')[0].submit();">Run lint</a> on {{.pdoc.PageName}}.
  17. {{if and (not .pdoc.IsCmd) (not .pdoc.Doc)}}
  18. <p>The {{.pdoc.Name}} package does not have a package declaration
  19. comment. See the <a
  20. href="http://blog.golang.org/godoc-documenting-go-code">Go
  21. documentation guidelines</a> for information on how to write a package
  22. comment. It's important to write a good summary of the package in the
  23. first sentence of the package comment. GoDoc indexes the first sentence
  24. and displays the first sentence in package lists.
  25. {{end}}
  26. {{end}}
  27. <p>&nbsp;
  28. {{end}}