A VSCode extension to automatically generate getters and setters for struct fields.
This extension generates pointer receivers. Setters always return the struct pointer to allow method chaining.
- Select a struct and some or all of its fields
Shift+CMD+P
Select command & return
Note: The first line in your selection should always be a struct declaration. The extension will only generate getters and setters for selected fields.
None at the moment
None
Initial release of GGSG
Hope you enjoy this extension!
npm install -g @vscode/vsce
vsce package
code --install-extension ggsg-1.0.0.vsix