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.
 
 
 

39 lines
732 B

  1. {{define "ROOT"}}{{with .pdoc}}PACKAGE{{if .Name}}
  2. package {{.Name}}
  3. import "{{.ImportPath}}"
  4. {{.Doc|comment}}
  5. {{if .Consts}}
  6. CONSTANTS
  7. {{range .Consts}}{{.Decl.Text}}
  8. {{.Doc|comment}}{{end}}
  9. {{end}}{{if .Vars}}
  10. VARIABLES
  11. {{range .Vars}}{{.Decl.Text}}
  12. {{.Doc|comment}}{{end}}
  13. {{end}}{{if .Funcs}}
  14. FUNCTIONS
  15. {{range .Funcs}}{{.Decl.Text}}
  16. {{.Doc|comment}}
  17. {{end}}{{end}}{{if .Types}}
  18. TYPES
  19. {{range .Types}}{{.Decl.Text}}
  20. {{.Doc|comment}}
  21. {{range .Consts}}{{.Decl.Text}}
  22. {{.Doc|comment}}
  23. {{end}}{{range .Vars}}{{.Decl.Text}}
  24. {{.Doc|comment}}
  25. {{end}}{{range .Funcs}}{{.Decl.Text}}
  26. {{.Doc|comment}}
  27. {{end}}{{range .Methods}}{{.Decl.Text}}
  28. {{.Doc|comment}}
  29. {{end}}{{end}}
  30. {{end}}
  31. {{template "Subdirs" $}}
  32. {{end}}{{end}}{{end}}