diff options
author | 2022-10-03 21:42:20 +0530 | |
---|---|---|
committer | 2022-10-03 21:42:20 +0530 | |
commit | af120ab348f2e1a5a39dec035ed9dcf84189a64e (patch) | |
tree | 2a3aadd7ce1b7b771dfe3fe7c983569726c8d7ed /zsh/oh-my-zsh/plugins/golang/templates | |
download | dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.gz dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.bz2 dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.zip |
dotfiles
Diffstat (limited to 'zsh/oh-my-zsh/plugins/golang/templates')
-rw-r--r-- | zsh/oh-my-zsh/plugins/golang/templates/package.txt | 29 | ||||
-rw-r--r-- | zsh/oh-my-zsh/plugins/golang/templates/search.txt | 0 |
2 files changed, 29 insertions, 0 deletions
diff --git a/zsh/oh-my-zsh/plugins/golang/templates/package.txt b/zsh/oh-my-zsh/plugins/golang/templates/package.txt new file mode 100644 index 0000000..2b75cce --- /dev/null +++ b/zsh/oh-my-zsh/plugins/golang/templates/package.txt @@ -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}} diff --git a/zsh/oh-my-zsh/plugins/golang/templates/search.txt b/zsh/oh-my-zsh/plugins/golang/templates/search.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zsh/oh-my-zsh/plugins/golang/templates/search.txt |