{"id":13694467,"url":"https://github.com/pkg/browser","last_synced_at":"2025-05-14T07:10:14.582Z","repository":{"id":18488281,"uuid":"21683929","full_name":"pkg/browser","owner":"pkg","description":"Package browser provides helpers to open files, readers, and urls in a browser window.","archived":false,"fork":false,"pushed_at":"2024-01-02T09:21:38.000Z","size":25,"stargazers_count":583,"open_issues_count":15,"forks_count":105,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-12T20:43:24.040Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkg.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":"2014-07-10T07:16:06.000Z","updated_at":"2025-04-09T11:06:38.000Z","dependencies_parsed_at":"2024-06-18T11:28:24.130Z","dependency_job_id":null,"html_url":"https://github.com/pkg/browser","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/pkg%2Fbrowser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Fbrowser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Fbrowser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Fbrowser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkg","download_url":"https://codeload.github.com/pkg/browser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092792,"owners_count":22013290,"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-08-02T17:01:32.995Z","updated_at":"2025-05-14T07:10:09.544Z","avatar_url":"https://github.com/pkg.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library","Go"],"sub_categories":["桌面开发","Desktop Development"],"readme":"\n# browser\n    import \"github.com/pkg/browser\"\n\nPackage browser provides helpers to open files, readers, and urls in a browser window.\n\nThe choice of which browser is started is entirely client dependant.\n\n\n\n\n\n## Variables\n``` go\nvar Stderr io.Writer = os.Stderr\n```\nStderr is the io.Writer to which executed commands write standard error.\n\n``` go\nvar Stdout io.Writer = os.Stdout\n```\nStdout is the io.Writer to which executed commands write standard output.\n\n\n## func OpenFile\n``` go\nfunc OpenFile(path string) error\n```\nOpenFile opens new browser window for the file path.\n\n\n## func OpenReader\n``` go\nfunc OpenReader(r io.Reader) error\n```\nOpenReader consumes the contents of r and presents the\nresults in a new browser window.\n\n\n## func OpenURL\n``` go\nfunc OpenURL(url string) error\n```\nOpenURL opens a new browser window pointing to url.\n\n\n\n\n\n\n\n\n\n- - -\nGenerated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg%2Fbrowser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkg%2Fbrowser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg%2Fbrowser/lists"}