aboutsummaryrefslogblamecommitdiff
path: root/README.md
blob: 20476c94ff4b131c5eb410607b539596ad4839b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                        
# Golang snippets

Extensions with frequently used snippets for productive go development.

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

| Prefix| Description | Example |
| :---- |:-----------:| -------:|
| `pkg` | Package header line | `package test` |
| `tyi` | Type interface declaration | ```type test interface {   }``` |
| `tys` | Type structure declaration | ```type test struct {   }``` |
| `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 |