8

Go Getters and Setters Generator

 2 years ago
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.
neoserver,ios ssh client

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

Release Notes

1.0.0

Initial release of GGSG

Hope you enjoy this extension!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK