snippets: avoid using "var" as default name in snippets

"var" is a reserved keyword. Some snippets using "var" as the default name produce Error: "expected 1 expression"
Replace the usage with more general names like `v`

Fixes golang/vscode-go#969

Change-Id: If335db938715a7c79e72e7e4d2fd0dc87507ca1d
GitHub-Last-Rev: 835feb47392a39fdb25b933401f1a1909d541ecc
GitHub-Pull-Request: golang/vscode-go#970
Reviewed-by: Suzy Mueller <>
Reviewed-by: Hyang-Ah Hana Kim <>
Trust: Suzy Mueller <>
Trust: Hyang-Ah Hana Kim <>
diff --git a/snippets/go.json b/snippets/go.json
index 6f1632f..79c7fa6 100644
--- a/snippets/go.json
+++ b/snippets/go.json
@@ -67,7 +67,7 @@
 		"for range statement": {
 			"prefix": "forr",
-			"body": "for ${1:_, }${2:var} := range ${3:var} {\n\t$0\n}",
+			"body": "for ${1:_, }${2:v} := range ${3:v} {\n\t$0\n}",
 			"description": "Snippet for a for range loop"
 		"channel declaration": {