Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>golang-snippetsNew to Visual Studio Code? Get it now.
golang-snippets

golang-snippets

Martiros

|
2,307 installs
| (0) | Free
golang snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

go snippets

Golang snippets

Usage

keywords

Enjoy! Keywords for easy working

        


.int =>  .(int)


start =>  package main
          
          import "fmt"
          
          func main() {
              $0
          }


pl =>  fmt.Println($0)


for =>  for i := 0; i < $1; i++ {
            $0
        }


empty-for =>  for $1 {
                  $0
              }


r =>  return $0


d =>  $1 := $0


t =>  true


f =>  false


notnil =>  != nil


isnil =>  == nil


im =>  import "$0"


imfmt =>  import "fmt"

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