Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Go Getters and Setters GeneratorNew to Visual Studio Code? Get it now.
Go Getters and Setters Generator

Go Getters and Setters Generator

trythrow

|
1,750 installs
| (1) | Free
Getters and Setters generator for Go stucts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Select a struct and some or all of its fields
  2. Shift+CMD+P Select command & return

Usage

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

None

Release Notes

1.0.0

Initial release of GGSG

Hope you enjoy this extension!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft