You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(go-mode): Introduces consistent formatting changes to Go snippets
**Summary:**
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.
These changes improve code readability and maintain consistency throughout the 'go-mode' snippets.
**Related Issues:**
None
0 commit comments