{"id":13481146,"url":"https://github.com/skratchdot/open-golang","last_synced_at":"2025-05-14T09:07:25.860Z","repository":{"id":37502614,"uuid":"10582708","full_name":"skratchdot/open-golang","owner":"skratchdot","description":"Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.","archived":false,"fork":false,"pushed_at":"2023-06-22T19:57:04.000Z","size":19,"stargazers_count":797,"open_issues_count":17,"forks_count":64,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-11T03:38:11.281Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skratchdot.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":"2013-06-09T12:12:43.000Z","updated_at":"2025-03-14T15:39:36.000Z","dependencies_parsed_at":"2024-05-28T03:15:46.309Z","dependency_job_id":null,"html_url":"https://github.com/skratchdot/open-golang","commit_stats":{"total_commits":18,"total_committers":12,"mean_commits":1.5,"dds":0.6111111111111112,"last_synced_commit":"eef8423979666925a58eb77f9db583e54320d5a4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fopen-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fopen-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fopen-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fopen-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/open-golang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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-07-31T17:00:49.153Z","updated_at":"2025-05-14T09:07:25.828Z","avatar_url":"https://github.com/skratchdot.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# open\n\n## Description ##\n\n    Open a file, directory, or URI using the OS's default application for\n    that object type. Optionally, you can specify an application to use.\n\n    This is a proxy for the following commands:\n\n\t        OSX: \"open\"\n\t    Windows: \"start\"\n\tLinux/Other: \"xdg-open\"\n\n    This is a golang port of the node.js module:\n    https://github.com/pwnall/node-open\n\n\n## Documentation ##\n\n[http://godoc.org/github.com/skratchdot/open-golang/open](http://godoc.org/github.com/skratchdot/open-golang/open)\n\n## Import ##\n\n    import \"github.com/skratchdot/open-golang/open\"\n\n## Usage ##\n\n### open google.com in the user's default browser (method 1):\n\n\topen.Run(\"https://google.com/\")\n\t\n### open google.com in the user's default browser (method 2):\n\n\topen.Start(\"https://google.com\")\n\n### you can listen for errors\n\n\terr := open.Run(\"https://google.com/\")\n\t\n### you can specify the program to use\n\n\topen.RunWith(\"https://google.com/\", \"firefox\")\t\n\n\n## Functions ##\n\n### func Run(input string) error\n\n    Open a file, directory, or URI using the OS's default application for\n    that object type. Wait for the open command to complete.\n\n### func RunWith(input string, appName string) error\n\n    Open a file, directory, or URI using the specified application. Wait for\n    the open command to complete.\n\n### func Start(input string) error\n\n    Open a file, directory, or URI using the OS's default application for\n    that object type. Don't wait for the open command to complete.\n\n### func StartWith(input string, appName string) error\n\n    Open a file, directory, or URI using the specified application. Don't\n    wait for the open command to complete.\n\n\n## License ##\n\nCopyright (c) 2013 skratchdot  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fopen-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Fopen-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fopen-golang/lists"}