mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
add godoc plugin
This commit is contained in:
parent
b34aee7f76
commit
20195379c3
2 changed files with 91 additions and 0 deletions
41
plugins/godoc/templates/package.txt
Normal file
41
plugins/godoc/templates/package.txt
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{{with .PDoc}}{{/*
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Consts}}{{range .}}{{range .Names}}{{.}}
|
||||
{{end}}{{end}}{{end}}{{/*
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Vars}}{{range .}}{{range .Names}}{{.}}
|
||||
{{end}}{{end}}{{end}}{{/*
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Funcs}}{{range .}}{{.Name}}
|
||||
{{end}}{{end}}{{/*
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Types}}{{range .}}{{/*
|
||||
|
||||
*/}}{{.Name}}
|
||||
{{/*
|
||||
|
||||
*/}}{{range .Methods}}{{.Name}}
|
||||
{{end}}{{/*
|
||||
|
||||
*/}}{{range .Funcs}}{{.Name}}
|
||||
{{end}}{{/*
|
||||
|
||||
*/}}{{range .Consts}}{{range .Names}}{{.}}
|
||||
{{end}}{{end}}{{/*
|
||||
|
||||
*/}}{{range .Vars}}{{range .Names}}{{.}}
|
||||
{{end}}{{end}}{{/*
|
||||
|
||||
*/}}{{end}}{{end}}{{/*
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue