{"id":17349518,"url":"https://github.com/umutbasal/go-snippets-vscode","last_synced_at":"2026-05-01T10:31:47.959Z","repository":{"id":135102181,"uuid":"338672147","full_name":"umutbasal/go-snippets-vscode","owner":"umutbasal","description":"https://marketplace.visualstudio.com/items?itemName=umutbasal.go-snippets-vscode","archived":false,"fork":false,"pushed_at":"2021-02-13T21:24:31.000Z","size":145,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T11:44:59.124Z","etag":null,"topics":["development","golang","vscode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umutbasal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-13T21:21:09.000Z","updated_at":"2023-08-20T08:04:36.000Z","dependencies_parsed_at":"2024-04-18T23:16:09.257Z","dependency_job_id":null,"html_url":"https://github.com/umutbasal/go-snippets-vscode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umutbasal/go-snippets-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fgo-snippets-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fgo-snippets-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fgo-snippets-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fgo-snippets-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umutbasal","download_url":"https://codeload.github.com/umutbasal/go-snippets-vscode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutbasal%2Fgo-snippets-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32494270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","golang","vscode"],"created_at":"2024-10-15T16:56:19.598Z","updated_at":"2026-05-01T10:31:47.952Z","avatar_url":"https://github.com/umutbasal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Sniper\n## Usage\n|prefix|description|\n|---|---|\n|:|: \"v := value\"|\n|anon|anon \"fn := func() { ... }\"|\n|ap|ap \"append(slice, value)\"|\n|ap|ap= \"a = append(a, value)\"|\n|br|br \"break\"|\n|ch|ch \"chan Type\"|\n|case|case \"case ...:\"|\n|con|con \"const XXX Type = ...\"|\n|cons|cons \"const ( ... )\"|\n|iota|iota \"const ( ... = iota )\"|\n|cn|cn \"continue\"|\n|default|default \"default: ...\"|\n|df|df \"defer someFunction()\"|\n|def|def \"defer func() { ... }\"|\n|defr|defr|\n|gpl|gpl|\n|import|import \"import ( ... )\"|\n|interface|interface \"interface I { ... }\"|\n|if|if \"if ... { ... }\"|\n|else|else|\n|ife|ife \"If with inline error\"|\n|ew|ew \"errors.Wrap\"|\n|ewf|ewf \"errors.Wrapf\"|\n|errn|errn \"Error return\" !b|\n|errnw|errnw \"Error return wrap\" !b|\n|errnwf|errnwf \"Error return wrapf\" !b|\n|errl|errl \"Error with log.Fatal(err)\" !b|\n|errn,|errn, \"Error return with two return values\" !b|\n|errn,w|errn,w \"Error return wrap with two return values\" !b|\n|errn,wf|errn,wf \"Error return wrapf with two return values\" !b|\n|errp|errp \"Error panic\" !b|\n|errt|errt \"Error test fatal \" !b|\n|errh|errh \"Error handle and return\" !b|\n|json|json \"\\`json:key\\`\"|\n|yaml|yaml \"\\`yaml:key\\`\"|\n|ft|ft \"fallthrough\"|\n|for|for \"for ... { ... }\"|\n|fori|fori \"for 0..N-1 { ... }\"|\n|forr|forr \"for k, v := range items { ... }\"|\n|forsel|forsel \"for select\"|\n|selc|selc \"select case\" !b|\n|func|func \"func Function(...) [error] { ... }\"|\n|ff|ff \"fmt.Printf(...)\"|\n|ffh|ffh \"fmt.Printf(#...) hash\"|\n|fn|fn \"fmt.Println(...)\"|\n|fe|fe \"fmt.Errorf(...)\"|\n|few|few \"fmt.Errorf(%w, err)\"|\n|errnfw|errnfw \"Error return fmt.Errorf(%w, err)\" !b|\n|lf|lf \"log.Printf(...)\"|\n|ln|ln \"log.Println(...)\"|\n|make|make \"make(Type, size)\"|\n|map|map \"map[Type]Type\"|\n|main|main \"func main() { ... }\"|\n|meth|meth \"func (self Type) Method(...) [error] { ... }\"|\n|ok|ok \"if !ok { ... }\"|\n|package|package \"package ...\"|\n|pn|pn \"panic()\"|\n|rt|rt \"return\"|\n|select|select \"select { case a := \u003c-chan: ... }\"|\n|st|st \"type T struct { ... }\"|\n|switch|switch \"switch x { ... }\"|\n|tswitch|tswitch \"type switch x { ... }\"|\n|sp|sp \"fmt.Sprintf(...)\"|\n|go|go \"go someFunc(...)\"|\n|gof|gof \"go func() { ... }()\"|\n|test|test \"func TestXYZ(t *testing.T) { ... }\"|\n|tt|tt|\n|hf|hf \"http.HandlerFunc\"|\n|hhf|hhf \"mux.HandleFunc\" !b|\n|tsrv|tsrv \"httptest.NewServer\"|\n|ter|ter \"if err != nil { t.Errorf(...) }\"|\n|terf|terf \"if err != nil { t.Fatalf(...) }\"|\n|example|example \"func ExampleXYZ() { ... }\"|\n|benchmark|benchmark \"func BenchmarkXYZ(b *testing.B) { ... }\"|\n|var|var \"var x Type [= ...]\"|\n|vars|vars \"var ( ... )\"|\n|eq|eq \"equals: test two identifiers with DeepEqual\"|\n|ifae|If actual expected|\n|tr|Test case t.Run|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutbasal%2Fgo-snippets-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumutbasal%2Fgo-snippets-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutbasal%2Fgo-snippets-vscode/lists"}