gotools/README.md

29 lines
1.4 KiB
Markdown

# 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%20downloads)](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 | 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" />