snippet(go): reformat & revise snippets for consistency #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This pull request introduces consistent formatting changes to various Go code snippets in the 'go-mode' directory. The changes include:
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
Replace this with a summary of what you've changed and why, followed by a list of issues it affects, if any.
Fix: #0000
Ref: #0000
Close: #0000