{"id":13413526,"url":"https://github.com/hackebrot/turtle","last_synced_at":"2025-05-09T01:43:49.268Z","repository":{"id":57483443,"uuid":"102909380","full_name":"hackebrot/turtle","owner":"hackebrot","description":"Emojis for Go 😄🐢🚀","archived":false,"fork":false,"pushed_at":"2021-10-04T08:23:47.000Z","size":137,"stargazers_count":163,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T20:44:49.534Z","etag":null,"topics":["emoji","go","golang"],"latest_commit_sha":null,"homepage":"","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/hackebrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-08T22:25:32.000Z","updated_at":"2025-02-13T09:16:42.000Z","dependencies_parsed_at":"2022-08-27T23:22:05.403Z","dependency_job_id":null,"html_url":"https://github.com/hackebrot/turtle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackebrot%2Fturtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackebrot%2Fturtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackebrot%2Fturtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackebrot%2Fturtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackebrot","download_url":"https://codeload.github.com/hackebrot/turtle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176439,"owners_count":21866141,"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":["emoji","go","golang"],"created_at":"2024-07-30T20:01:42.412Z","updated_at":"2025-05-09T01:43:49.223Z","avatar_url":"https://github.com/hackebrot.png","language":"Go","funding_links":[],"categories":["Microsoft Office","Miscellaneous","其他杂项","杂项","Uncategorized","\u003cspan id=\"其他-miscellaneous\"\u003e其他 Miscellaneous\u003c/span\u003e","其他"],"sub_categories":["Uncategorized","Advanced Console UIs","暂未分类","Strings","未分类的","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流","暂未分类这些库被放在这里是因为其他类别似乎都不适合。"],"readme":"# turtle\n\nEmojis for Go 😄🐢🚀\n\n## Reference\n\nFollow this link to view the reference documentation: [GoDoc Reference][godoc] 📝\n\n## Installation\n\n### Library\n\nTo install the **turtle** library run:\n\n``go get github.com/hackebrot/turtle``\n\n### CLI app\n\nIf you would also like to use the **turtle** CLI app run:\n\n``go get github.com/hackebrot/turtle/cmd/turtle``\n\nSee the [turtle CLI][cli] README for more information.\n\n## Usage\n\n### Emoji lookup\n\n``turtle.Emojis`` is a map which contains all emojis available in **turtle**.\nYou can use it to look up emoji by their name.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/hackebrot/turtle\"\n)\n\nfunc main() {\n\tname := \"turtle\"\n\temoji, ok := turtle.Emojis[name]\n\n\tif !ok {\n\t\tfmt.Fprintf(os.Stderr, \"no emoji found for name: %v\\n\", name)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"Name: %q\\n\", emoji.Name)\n\tfmt.Printf(\"Char: %s\\n\", emoji.Char)\n\tfmt.Printf(\"Category: %q\\n\", emoji.Category)\n\tfmt.Printf(\"Keywords: %q\\n\", emoji.Keywords)\n}\n```\n\n```text\nName: \"turtle\"\nChar: 🐢\nCategory: \"animals_and_nature\"\nKeywords: [\"animal\" \"slow\" \"nature\" \"tortoise\"]\n```\n\n### Search\n\nUse ``Search()`` to find all emojis with a name that contains the search string.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/hackebrot/turtle\"\n)\n\nfunc main() {\n\ts := \"computer\"\n\temojis := turtle.Search(s)\n\n\tif emojis == nil {\n\t\tfmt.Fprintf(os.Stderr, \"no emojis found for search: %v\\n\", s)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"%s: %s\\n\", s, emojis)\n}\n```\n\n```text\ncomputer: [💻 🖱 🖥 ]\n```\n\n### Category\n\nUse ``Category()`` to find all emojis of the specified category.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/hackebrot/turtle\"\n)\n\nfunc main() {\n\tc := \"travel_and_places\"\n\temojis := turtle.Category(c)\n\n\tif emojis == nil {\n\t\tfmt.Fprintf(os.Stderr, \"no emojis found for category: %v\\n\", c)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"%s: %s\\n\", c, emojis)\n}\n```\n\n```text\ntravel_and_places: [🚡 ✈️ 🚑 ]\n```\n\n### Keyword\n\nUse ``Keyword()`` to find all emojis by a keyword.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/hackebrot/turtle\"\n)\n\nfunc main() {\n\tk := \"happy\"\n\temojis := turtle.Keyword(k)\n\n\tif emojis == nil {\n\t\tfmt.Fprintf(os.Stderr, \"no emoji found for keyword: %v\\n\", k)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"%s: %s\\n\", k, emojis)\n}\n```\n\n```text\nhappy: [😊 😁 😀 😂 ]\n```\n\n## Emojis\n\nEmoji names, categories and keywords are based on the fantastic\n[muan/emojilib][emojilib] keyword library 📖\n\nAt this point, the **turtle** project supports the emojis that are also\navailable on GitHub. See the [GitHub REST API documentation][github-api] for\nmore information.\n\n## Issues\n\nIf you encounter any problems, please [file an issue][new-issue] along with a\ndetailed description.\n\n## Contributing\n\nContributions are welcome, and they are greatly appreciated! Every little bit\nhelps, and credit will always be given.\n\n## License\n\nDistributed under the terms of the [MIT license][mit], turtle is free and\nopen source software.\n\n[cli]: /cmd/turtle/README.md\n[emojilib]: https://github.com/muan/emojilib\n[github-api]: https://developer.github.com/v3/emojis/\n[godoc]: https://godoc.org/github.com/hackebrot/turtle (See GoDoc Reference)\n[mit]: /LICENSE\n[new-issue]: https://github.com/hackebrot/turtle/issues/new\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackebrot%2Fturtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackebrot%2Fturtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackebrot%2Fturtle/lists"}