Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4c7458c

Browse files
committed
fix(go-mode): "multiple snippets with same identity" warnings
Fix: #114
1 parent 2bc978d commit 4c7458c

File tree

12 files changed

+10
-34
lines changed

12 files changed

+10
-34
lines changed

‎go-mode/f

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- mode: snippet -*-
22
# name: func ...(...) ... { ... }
33
# --
4-
func ${1:name}(${2:args}) ${3:return type}{
5-
`%`0ドル
6-
}
4+
(doom-snippets-expand :uuid "func")

‎go-mode/fm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- mode: snippet -*-
22
# name: func (target) name(args) (results) { ... }
33
# --
4-
func (${1:target}) ${2:name}(${3:args}) ${4:return type}{
5-
0ドル
6-
}
4+
(doom-snippets-expand :uuid "method")

‎go-mode/fore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- mode: snippet -*-
22
# name: for key, value := range ... { ... }
33
# --
4-
for ${1:key}, ${2:value} := range ${3:target} {
5-
`%`0ドル
6-
}
4+
(doom-snippets-expand :uuid "foreach")

‎go-mode/foreach

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: for key, value := range ... { ... }
3+
# uuid: foreach
34
# --
45
for ${1:key}, ${2:value} := range ${3:target} {
56
`%`0ドル

‎go-mode/forw

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎go-mode/func

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: func ...(...) ... { ... }
3+
# uuid: func
34
# --
45
func ${1:name}(${2:args}) ${3:return type}{
56
`%`0ドル

‎go-mode/gofunc

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎go-mode/method

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: func (target) name(args) (results) { ... }
3+
# uuid: method
34
# --
45
func (${1:target}) ${2:name}(${3:args}) ${4:return type}{
56
0ドル

‎go-mode/printf

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎go-mode/println

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- mode: snippet -*-
2-
# name: println
2+
# name: println(...)
3+
# uuid: println
34
# --
45
fmt.Println("${1:msg}")0ドル

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /