aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 0bf59c9836de0840cdf795745916b7fbeced0db2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Golang Tools

[![Version](https://vsmarketplacebadge.apphb.com/version/neonxp.gotools.svg)](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)
[![Installs](https://img.shields.io/visual-studio-marketplace/i/neonxp.gotools?label=Visual%20Studio%20Marketplace%20installs)](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)
[![Installs](https://img.shields.io/open-vsx/dt/neonxp/gotools?label=Open-VSX%20installs)](https://open-vsx.org/extension/neonxp/gotools)
[![GPLv3](https://img.shields.io/github/license/neonxp/GoTools)](/LICENSE)

[Install extension from Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)

[Install extension from Open-VSX](https://open-vsx.org/extension/neonxp/gotools) (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:

<img src="/wraperror.gif" width="500" />