mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2025-01-10 02:40:19 +01:00
cb6e5cb0c7
* use dep for vendoring * lets encrypt * moved web to transfer.sh-web repo * single command install * added first tests
38 lines
732 B
Text
38 lines
732 B
Text
{{define "ROOT"}}{{with .pdoc}}PACKAGE{{if .Name}}
|
|
|
|
package {{.Name}}
|
|
import "{{.ImportPath}}"
|
|
|
|
{{.Doc|comment}}
|
|
{{if .Consts}}
|
|
CONSTANTS
|
|
|
|
{{range .Consts}}{{.Decl.Text}}
|
|
{{.Doc|comment}}{{end}}
|
|
{{end}}{{if .Vars}}
|
|
VARIABLES
|
|
|
|
{{range .Vars}}{{.Decl.Text}}
|
|
{{.Doc|comment}}{{end}}
|
|
{{end}}{{if .Funcs}}
|
|
FUNCTIONS
|
|
|
|
{{range .Funcs}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{end}}{{end}}{{if .Types}}
|
|
TYPES
|
|
|
|
{{range .Types}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{range .Consts}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{end}}{{range .Vars}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{end}}{{range .Funcs}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{end}}{{range .Methods}}{{.Decl.Text}}
|
|
{{.Doc|comment}}
|
|
{{end}}{{end}}
|
|
{{end}}
|
|
{{template "Subdirs" $}}
|
|
{{end}}{{end}}{{end}}
|