gotools/README.md

30 lines
1.4 KiB
Markdown
Raw Normal View History

2021-03-22 05:17:45 +03:00
# Golang Tools
2021-03-19 02:22:55 +03:00
2021-03-19 03:24:12 +03:00
[![Version](https://vsmarketplacebadge.apphb.com/version/neonxp.gotools.svg)](https://marketplace.visualstudio.com/items?itemName=neonxp.gotools)
2021-03-28 21:48:26 +03:00
[![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)
2021-03-19 03:24:12 +03:00
2021-03-28 21:48:26 +03:00
[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)
2021-03-19 03:24:12 +03:00
2021-03-22 05:17:45 +03:00
Extensions with frequently used snippets and code actions for productive go development.
2021-03-19 02:22:55 +03:00
Extension in active development! Your contribution is always welcome :)
2021-03-22 05:17:45 +03:00
# Snippets
2021-03-19 02:22:55 +03:00
| 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 |
2021-03-22 05:17:45 +03:00
# Code actions
2021-03-28 04:48:10 +03:00
`Add error checking` - adds stub error checking to current line:
<img src="/wraperror.gif" width="500" />