all repos

dotfiles @ 8186dc7cad434cd19cacaf27754c9f54bbe3869a

i use rach linux btw

dotfiles/config/nvim/snippets/go.json (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
move nvim config in here, 1 month ago
1
{
2
  "for i statement": {
3
    "prefix": "fori",
4
    "body": "for ${1:i} := ${2:0}; $1 < ${3:count}; $1${4:++} {\n\t$0\n}",
5
    "description": "Snippet for a for loop"
6
  },
7
  "http.ResponseWriter *http.Request": {
8
    "prefix": "wr",
9
    "body": "w http.ResponseWriter, r *http.Request",
10
    "description": "Snippet for http Response"
11
  },
12
  "switch statement": {
13
    "prefix": "switch",
14
    "body": "switch ${1:expression} {\ncase ${2:condition}:\n\t$0\n}",
15
    "description": "Snippet for switch statement"
16
  },
17
  "select statement": {
18
    "prefix": ["sel", "select"],
19
    "body": "select {\ncase ${1:condition}:\n\t$0\ndefault:}",
20
    "description": "Snippet for select statement"
21
  }
22
}