Go Getters and Setters Generator
source link: https://marketplace.visualstudio.com/items?itemName=trythrow.ggsg&ssr=false
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Go getters and setters generator (GGSG)
A VSCode extension to automatically generate getters and setters for struct fields.
Features
This extension generates pointer receivers. Setters always return the struct pointer to allow method chaining.
How to use
- 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.
Extension Settings
None at the moment
Known Issues
Release Notes
1.0.0
Initial release of GGSG
Hope you enjoy this extension!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK