No description
Find a file
2023-08-08 02:40:09 +03:00
.github/workflows interface implementation 2023-08-08 01:28:57 +03:00
.vscode fix if err... code action 2023-08-06 01:29:52 +03:00
snippets fix if err... code action 2023-08-06 01:29:52 +03:00
src group imports command 2023-08-08 02:40:09 +03:00
test fix if err... code action 2023-08-06 01:29:52 +03:00
.eslintrc.json fix if err... code action 2023-08-06 01:29:52 +03:00
.gitignore fix if err... code action 2023-08-06 01:29:52 +03:00
.vscodeignore fix if err... code action 2023-08-06 01:29:52 +03:00
CHANGELOG.md fix if err... code action 2023-08-06 01:29:52 +03:00
icon.png icon 2021-03-19 16:23:40 +03:00
jsconfig.json fix if err... code action 2023-08-06 01:29:52 +03:00
package-lock.json interface implementation 2023-08-08 01:28:57 +03:00
package.json group imports command 2023-08-08 02:40:09 +03:00
README.md group imports command 2023-08-08 02:40:09 +03:00
wraperror.gif Add files via upload 2021-03-28 04:44:36 +03:00

Golang Tools

Install extension from Visual Studio Marketplace

Install extension from Open-VSX (codeserver/vscodium/gitpod)

Extensions with frequently used snippets and code actions for productive go development.

Extension in active development! Your contribution is always welcome :)

Snippets

Prefix Description
pkg Package header line
construct Constructor for structure type
iferr if err := fuction(); err != nil { ... }

Code actions

Add error checking - adds stub error checking to current line:

Interface implementation

Command "Go: Implement Interface Methods" based on https://github.com/ricardoerikson/vscode-go-impl-methods/ extension by Ricardo Erikson.

Install the impl package as follows:

go get -u github.com/josharian/impl

Usage

  1. At command pallete select command "Go: Implement Interface Methods"
  2. Write receiver for methods. Example: "f *File", "m MyType", "c CustomType"
  3. Select interface to implement

Group imports

Group imports command based on https://github.com/gustavo-bordin/golang-imports-group/ extension by Gustavo Bordin.

Usage

  1. At command pallete select command "Go: Group imports"