aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: fbc527daab6554acad922c579de4d73a26e6f555 (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
# Golang Tools

[![Version](https://vsmarketplacebadge.apphb.com/version/neonxp.gotools.svg)](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)
[![Installs](https://vsmarketplacebadge.apphb.com/installs/neonxp.gotools.svg)](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)
[![GPL-3](https://img.shields.io/github/license/neonxp/GoTools)](/LICENSE)

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

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

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

# Snippets

| Prefix| Description | Example |
| :---- |:-----------:| -------:|
| `pkg` | Package header line | `package test` |
| `construct` | Constructor for structure type | see in action |
| `var` | Variable with type and value | `var test string = "hello"` |
| `stack` | Stack from array of types | see in action |

# Code actions

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

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