{"id":18351441,"url":"https://github.com/writefreely/go-gopher","last_synced_at":"2025-04-06T11:32:33.807Z","repository":{"id":37574959,"uuid":"487070261","full_name":"writefreely/go-gopher","owner":"writefreely","description":"[MIRROR: https://git.mills.io/prologic/go-gopher] Gopher (RFC 1436) protocol library for the Go (Golang) programming language supporting both client and server","archived":false,"fork":false,"pushed_at":"2023-05-19T19:59:45.000Z","size":4691,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T20:23:23.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/writefreely.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}},"created_at":"2022-04-29T18:16:02.000Z","updated_at":"2023-07-31T22:35:07.000Z","dependencies_parsed_at":"2024-03-18T03:20:18.985Z","dependency_job_id":"119ffe39-1313-45f9-a5b0-1cf372421e8d","html_url":"https://github.com/writefreely/go-gopher","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/writefreely%2Fgo-gopher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writefreely%2Fgo-gopher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writefreely%2Fgo-gopher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writefreely%2Fgo-gopher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writefreely","download_url":"https://codeload.github.com/writefreely/go-gopher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945257,"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-05T21:31:04.772Z","updated_at":"2025-04-06T11:32:33.519Z","avatar_url":"https://github.com/writefreely.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gopher protocol library for Golang\n\n[![Build Status](https://ci.mills.io/api/badges/prologic/go-gopher/status.svg)](https://ci.mills.io/prologic/go-gopher)\n\nThis is a standards compliant Gopher library for the Go programming language\nimplementing the RFC 1436 specification. The library includes both client and\nserver handling and examples of each.\n\n## Installation\n\n```#!bash\n$ go get github.com/writefreely/go-gopher\n```\n\n## Usage\n\n```#!go\nimport \"github.com/writefreely/go-gopher\"\n```\n\n## Example\n\n### Client\n\n```#!go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/writefreely/go-gopher\"\n)\n\nfunc main() {\n\tres, _ := gopher.Get(\"gopher://gopher.floodgap.com/\")\n\tbytes, _ := res.Dir.ToText()\n\tfmt.Println(string(bytes))\n}\n```\n\n### Server\n\n```#!go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/writefreely/go-gopher\"\n)\n\nfunc hello(w gopher.ResponseWriter, r *gopher.Request) {\n\tw.WriteInfo(\"Hello World!\")\n}\n\nfunc main() {\n\tgopher.HandleFunc(\"/hello\", hello)\n\tlog.Fatal(gopher.ListenAndServe(\"localhost:70\", nil))\n}\n```\n\n## Related\n\nRelated projects:\n\n- [gopherproxy](https://git.mills.io/prologic/gopherproxy)\n  gopherproxy is Gopher to HTTP proxy that uses go-gopher\n  for all of its core functionality.\n\n- [gopherclient](https://git.mills.io/prologic/gopherclient)\n  gopherclient is a cross-platform QT/QML GUI Gopher Client\n  using the gopherproxy library as its backend.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritefreely%2Fgo-gopher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritefreely%2Fgo-gopher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritefreely%2Fgo-gopher/lists"}