xgqfrms / vscode

:cn: :rocket: Visual Studio Code & VSCode Code Snippets All in One 🎉
https://vscode.xgqfrms.xyz
MIT License
3 stars 1 forks source link

Go template #33

Open xgqfrms opened 4 years ago

xgqfrms commented 4 years ago

Go template

got

{
  "Go Template": {
    "prefix": "got",
    "body": [
      "/**",
      " * ",
      " * @author xgqfrms",
      " * @license MIT",
      " * @copyright xgqfrms",
      " * @created 2020-01-0$1",
      " * ",
      " * @description $2",
      " * @augments $3",
      " * @example $4",
      " * @link $5",
      " * ",
      " */",
      "",
      "package main",
      "",
      "// import \"fmt\"",
      "// import (\"fmt\")",
      "import (",
      "  \"fmt\"",
      "  \"strings\"",
      "  \"time\"",
      "  \"math/rand\"",
      "  \"testing\"",
      "  \"bytes\"",
      "  \"encoding/base64\"",
      "  \"image\"",
      "  \"image/png\"",
      ")",
      "",
      "func main() {",
      "  fmt.Println(\"Hello, Go\")",
      "}",
      "",
      ""
    ],
    "description": "Go Template & code snippets!"
  }
}