Created
May 13, 2015 10:00
-
-
Save me7/45fa82aa24c2224c4ecd to your computer and use it in GitHub Desktop.
Gosublime Settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"fmt_cmd": ["goimports"], | |
"autocomplete_snippets": true, | |
"autocomplete_builtins": true, | |
"autocomplete_closures": true, | |
"autocomplete_suggest_imports": true, | |
"use_named_imports": true, | |
"default_snippets": [ | |
{ | |
"match": {"global": true, "pkgname": "."}, | |
"snippets": [ | |
{"text": "ife", "title": "if err!=nil {...}", "value": "if err != nil {\n\treturn err\n}\n\n$0"}, | |
{"text": "ife1", "title": "if err!=nil {nil.err}", "value": "if err != nil {\n\treturn ${1: nil,}err\n}\n$0"}, | |
{"text": "ifok", "title": "if err=n(); err {...}", "value": "if err = $1; err {\n\treturn $2, err\n}\n$0"}, | |
{"text": "err", "title": ", err=$1; err {...}", "value": ", err = $1; err {\n\treturn $2, err\n}\n\n$0"}, | |
{ | |
"text": "func http handler", | |
"title": "func(rw, req)", | |
"value": "func ${1:name}(rw http.ResponseWriter, req *http.Request) {\n\t$0\n}" | |
} | |
] | |
}, | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment