{"id":13693700,"url":"https://github.com/enescakir/emoji","last_synced_at":"2025-05-15T12:05:49.193Z","repository":{"id":52233665,"uuid":"240949382","full_name":"enescakir/emoji","owner":"enescakir","description":"A minimalistic emoji package for Go (golang)","archived":false,"fork":false,"pushed_at":"2024-06-24T12:47:36.000Z","size":245,"stargazers_count":448,"open_issues_count":5,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T21:48:56.006Z","etag":null,"topics":["emoji","go","golang","output","terminal"],"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/enescakir.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":"2020-02-16T19:10:05.000Z","updated_at":"2025-04-08T15:55:58.000Z","dependencies_parsed_at":"2024-06-18T12:38:37.668Z","dependency_job_id":"37a47edb-0c23-4196-89b8-40372c54980f","html_url":"https://github.com/enescakir/emoji","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescakir%2Femoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescakir%2Femoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescakir%2Femoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescakir%2Femoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enescakir","download_url":"https://codeload.github.com/enescakir/emoji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337613,"owners_count":22054253,"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","output","terminal"],"created_at":"2024-08-02T17:01:15.713Z","updated_at":"2025-05-15T12:05:44.166Z","avatar_url":"https://github.com/enescakir.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library"],"sub_categories":["文本处理","Word Processing"],"readme":"# emoji :rocket: :school_satchel: :tada:\n[![Build Status](https://github.com/enescakir/emoji/workflows/build/badge.svg?branch=master)](https://github.com/enescakir/emoji/actions)\n[![godoc](https://godoc.org/github.com/enescakir/emoji?status.svg)](https://godoc.org/github.com/enescakir/emoji)\n[![Go Report Card](https://goreportcard.com/badge/github.com/enescakir/emoji)](https://goreportcard.com/report/github.com/enescakir/emoji)\n[![Codecov](https://img.shields.io/codecov/c/github/enescakir/emoji)](https://codecov.io/gh/enescakir/emoji)\n[![MIT License](https://img.shields.io/github/license/enescakir/emoji)](https://github.com/enescakir/emoji/blob/master/LICENSE)\n\n`emoji` is a minimalistic emoji library for Go. It lets you use emoji characters in strings.\n\nInspired by [spatie/emoji](https://github.com/spatie/emoji)\n\n## Install :floppy_disk:\n``` bash\ngo get github.com/enescakir/emoji\n```\n\n## Usage :surfer:\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/enescakir/emoji\"\n)\n\nfunc main() {\n\tfmt.Printf(\"Hello %v\\n\", emoji.WavingHand)\n\tfmt.Printf(\"I am %v from %v\\n\",\n\t\temoji.ManTechnologist,\n\t\temoji.FlagForTurkey,\n\t)\n\tfmt.Printf(\"Different skin tones.\\n  default: %v light: %v dark: %v\\n\",\n\t\temoji.ThumbsUp,\n\t\temoji.OkHand.Tone(emoji.Light),\n\t\temoji.CallMeHand.Tone(emoji.Dark),\n\t)\n\tfmt.Printf(\"Emojis with multiple skin tones.\\n  both medium: %v light and dark: %v\\n\",\n\t\temoji.PeopleHoldingHands.Tone(emoji.Medium),\n\t\temoji.PeopleHoldingHands.Tone(emoji.Light, emoji.Dark),\n\t)\n\tfmt.Println(emoji.Parse(\"Emoji aliases are :sunglasses:\"))\n\temoji.Println(\"Use fmt wrappers :+1: with emoji support :tada:\")\n}\n\n/* OUTPUT\n\n    Hello 👋\n    I am 👨‍💻 from 🇹🇷\n    Different skin tones.\n      default: 👍 light: 👌🏻 dark: 🤙🏿\n    Emojis with multiple skin tones.\n      both medium: 🧑🏽‍🤝‍🧑🏽 light and dark: 🧑🏻‍🤝‍🧑🏿\n    Emoji aliases are 😎\n    Use fmt wrappers 👍 with emoji support 🎉\n*/\n```\n\nThis package contains emojis constants based on [Full Emoji List v13.0](https://unicode.org/Public/emoji/13.0/emoji-test.txt).\n```go\nemoji.CallMeHand // 🤙\nemoji.CallMeHand.Tone(emoji.Dark) // 🤙🏿\n```\nAlso, it has additional emoji aliases from [github/gemoji](https://github.com/github/gemoji).\n```go\nemoji.Parse(\":+1:\") // 👍\nemoji.Parse(\":100:\") // 💯\n```\n\nYou can generate country flag emoji with [ISO 3166 Alpha2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes:\n```go\nemoji.CountryFlag(\"tr\") // 🇹🇷\nemoji.CountryFlag(\"US\") // 🇺🇸\nemoji.Parse(\"country flag alias :flag-gb:\") // country flag alias 🇬🇧\n```\n\nAll constants are generated by `internal/generator`.\n\n## Testing :hammer:\n``` bash\ngo test\n```\n\n## Todo :pushpin:\n* Add examples to `godoc`\n\n## Contributing :man_technologist:\nI am accepting PRs that add aliases to the package.\nYou have to add it to `customEmojis` list at `internal/generator/main`.\n\nIf you think an emoji constant is not correct, open an issue.\nPlease use [this list](http://unicode.org/emoji/charts/full-emoji-list.html)\nto look up the correct unicode value and the name of the character.\n\n## Credits :star:\n- [Enes Çakır](https://github.com/enescakir)\n\n## License :scroll:\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenescakir%2Femoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenescakir%2Femoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenescakir%2Femoji/lists"}