mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
golang: improve go doc completion
This commit is contained in:
parent
9c08641d7c
commit
9e9b790fe1
3 changed files with 54 additions and 11 deletions
29
plugins/golang/templates/package.txt
Normal file
29
plugins/golang/templates/package.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{{with .PDoc}}{{/*
|
||||
|
||||
Constants
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Consts}}{{range .}}{{range .Names}}{{.}} {{end}}{{end}}{{end}}{{/*
|
||||
|
||||
Variables
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Vars}}{{range .}}{{range .Names}}{{.}} {{end}}{{end}}{{end}}{{/*
|
||||
|
||||
Functions
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Funcs}}{{range .}}{{ .Name }} {{end}}{{end}}{{/*
|
||||
|
||||
Types
|
||||
---------------------------------------
|
||||
|
||||
*/}}{{with .Types}}{{range .}}{{ $TypeName := .Name }}{{ $TypeName }} {{/*
|
||||
|
||||
*/}}{{range .Methods}}{{ $TypeName }}.{{.Name}} {{end}}{{/*
|
||||
|
||||
*/}}{{range .Funcs}}{{.Name}} {{end}}{{/*
|
||||
|
||||
*/}}{{range .Consts}}{{range .Names}}{{.}} {{end}}{{end}}{{/*
|
||||
|
||||
*/}}{{range .Vars}}{{range .Names}}{{.}} {{end}}{{end}}{{end}}{{end}}{{end}}
|
||||
0
plugins/golang/templates/search.txt
Normal file
0
plugins/golang/templates/search.txt
Normal file
Loading…
Add table
Add a link
Reference in a new issue