-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit 926eb54
snippet(go): reformat & revise snippets for consistency
This pull request introduces consistent formatting changes to various Go
code snippets in the 'go-mode' directory. The changes include:
- Adding spaces between function parameters and return types.
- Formatting import statements to use parentheses for multiple imports.
- Updating struct snippets to include a name for the struct type.
- Updating the 'switch' snippet to include an expression.
- Adding `type` for creating a new struct or interface.
**Changes Made:**
- In 'go-mode/f' and 'go-mode/func', added spaces between function
parameters and return types to follow go convention.
- In 'go-mode/method', added spaces between function parameters and
return types to follow go convention.
- In 'go-mode/imp' and 'go-mode/import', reformatted import
statements to use parentheses for multiple imports.
- In 'go-mode/struct', added a name for the struct type for clarity.
- Add a new file `go-mode/type` for creating a new struct or interface.
- In 'go-mode/switch', updated the 'switch' snippet to include an
expression for better usage.1 parent bde10ea commit 926eb54
9 files changed
+19
-9
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | + | ||
6 | + |
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | + | ||
6 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | - | ||
6 | + | ||
7 | + | ||
8 | 8 |
| |
9 | 9 |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + |
0 commit comments