diff --git a/UltiSnips/go.snippets b/UltiSnips/go.snippets index 7a60535..9b540f7 100644 --- a/UltiSnips/go.snippets +++ b/UltiSnips/go.snippets @@ -31,6 +31,18 @@ const ( ) endsnippet +snippet struct "Struct declaration" b +type ${1:Struct} struct { + ${0:${VISUAL}} +} +endsnippet + +snippet interface "Interface declaration" b +type ${1:Interface} interface { + ${0:${VISUAL}} +} +endsnippet + # statements snippet for "For loop" !b for ${1:condition}${1/(.+)/ /}{ @@ -110,4 +122,8 @@ var ( ) endsnippet +snippet json "JSON field" +\`json:"${1:displayName}"\` +endsnippet + # vim:ft=snippets: