https://github.com/fxamacker/vscode-snippets
User snippets for Visual Studio Code
https://github.com/fxamacker/vscode-snippets
golang gorountines snippets vscode vscode-snippets
Last synced: 23 days ago
JSON representation
User snippets for Visual Studio Code
- Host: GitHub
- URL: https://github.com/fxamacker/vscode-snippets
- Owner: fxamacker
- License: mit
- Created: 2019-09-26T21:44:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T22:17:15.000Z (almost 7 years ago)
- Last Synced: 2025-01-09T11:11:57.299Z (over 1 year ago)
- Topics: golang, gorountines, snippets, vscode, vscode-snippets
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-snippets
Code snippets for [Visual Studio Code](https://code.visualstudio.com/).
## Golang code snippets:
- Fan-out goroutines: Multiple worker goroutines read from the same inbound channel until that channel is closed; workers also send data to the same outbound channel and that channel is closed when all workers are stopped.
- Interrupt signal goroutine: Close \"done\" channel when interrupt signal is relayed.
## Installation
```
go get github.com/fxamacker/vscode-snippets
```
After downloading this repository, copy code snippets files (*.json) to `~/.config/Code/User/snippets/` or merge with your existing user defined snippets by hand.