Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Golang postfixNew to Visual Studio Code? Get it now.
Golang postfix

Golang postfix

fr-str

|
4,093 installs
| (1) | Free
Postfix templates for Golang
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Postfix templates for Golang

Version Installs

Forked from vscode-postfix-ts Forked from vscode-postfix-go

feature X

Under development. Any suggestions are welcomed.

Templates

All available templates (expr means the expression on which the template is applied):

Template Outcome
.if if expr
.else if !expr
.nil if expr == nil
.nnil if expr != nil
.forr for index := range expr
.fori for i := 0; i < len(expr); i++
.for for index, element := range expr
.return return expr
.var name := expr
.const const name type = expr
.append expr = append(expr, element)
.len len(expr)
.print fmt.Println(expr)
.printf fmt.Printf("%+v\n", expr)
.error errors.New("expr")
.struct type expr struct
.interface type expr interface
.switch switch expr
.exist if v, ok := expr; !ok {}
.list []type{expr}
.func func expr()
.method func (t *expr)
.type []byte/string/int/float(expr)

Author

Sota Yokoe (twitter)

Contributors

Hamza Anis fr-str

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft