{"id":20171602,"url":"https://github.com/pascalw/go-alfred","last_synced_at":"2025-04-10T02:43:13.830Z","repository":{"id":9093884,"uuid":"10871525","full_name":"pascalw/go-alfred","owner":"pascalw","description":"Utility library for creating lightning fast Alfred 2 workflows","archived":false,"fork":false,"pushed_at":"2016-09-28T18:09:55.000Z","size":3,"stargazers_count":26,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:13:17.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pascalw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-22T19:59:46.000Z","updated_at":"2025-03-08T16:02:07.000Z","dependencies_parsed_at":"2022-07-21T12:03:42.890Z","dependency_job_id":null,"html_url":"https://github.com/pascalw/go-alfred","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalw%2Fgo-alfred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalw%2Fgo-alfred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalw%2Fgo-alfred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalw%2Fgo-alfred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascalw","download_url":"https://codeload.github.com/pascalw/go-alfred/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248145186,"owners_count":21055077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-14T01:25:43.687Z","updated_at":"2025-04-10T02:43:13.803Z","avatar_url":"https://github.com/pascalw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-alfred\n\nGo-alfred is a utility library for quickly writing lightning fast [Alfred 2](http://www.alfredapp.com/) workflows using Golang.\n\n## Example usage\n\n```go\npackage main\n\nimport (\n\t\"os\"\n\t\"github.com/pascalw/go-alfred\"\n\t\"net/http\"\n\t\"io/ioutil\"\n\t\"encoding/json\"\n)\n\nfunc main() {\n\tqueryTerms := os.Args[1:]\n\n\t// optimize query terms for fuzzy matching\n\talfred.InitTerms(queryTerms)\n\n\t// create a new alfred workflow response\n\tresponse := alfred.NewResponse()\n\trepos := getRepos()\n\n\tfor _, repo := range repos {\n\t\t// check if the repo name fuzzy matches the query terms\n\t\tif ! alfred.MatchesTerms(queryTerms, repo.Name) { continue }\n\n\t\t// it matched so add a new response item\n\t\tresponse.AddItem(\u0026alfred.AlfredResponseItem{\n\t\t\tValid: true,\n\t\t\tUid: repo.URL,\n\t\t\tTitle: repo.Name,\n\t\t\tArg: repo.URL,\n\t\t})\n\t}\n\n\t// finally print the resulting Alfred Workflow XML\n\tresponse.Print()\n}\t\n```\n\nSee [Example/](https://github.com/pascalw/go-alfred/blob/master/example/example.go) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalw%2Fgo-alfred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalw%2Fgo-alfred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalw%2Fgo-alfred/lists"}