Skip to content

trythrow/go-getters-setters-generator

Repository files navigation

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!

About

Golang getters and setters generator (GGSG) for VSCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published