Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zewebdev1337/emojilist
Full list of fully qualified v11-v16 emoji characters as Go constants.
https://github.com/zewebdev1337/emojilist
emoji emoji-library emoji-list emoji-unicode golang
Last synced: 19 days ago
JSON representation
Full list of fully qualified v11-v16 emoji characters as Go constants.
- Host: GitHub
- URL: https://github.com/zewebdev1337/emojilist
- Owner: zewebdev1337
- License: mit
- Created: 2024-10-10T20:01:02.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T05:18:21.000Z (2 months ago)
- Last Synced: 2024-10-25T03:55:36.826Z (2 months ago)
- Topics: emoji, emoji-library, emoji-list, emoji-unicode, golang
- Language: Go
- Homepage: https://pkg.go.dev/github.com/zewebdev1337/emojilist
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emojilist
This package provides a full list of **fully qualified** emoji characters as constants using data from [the Unicode emoji test data](https://unicode.org/Public/emoji/16.0/emoji-test.txt). That's it.
The files within this package are **auto-generated** using `go generate`, see [codegen](codegen/codegen.go).
**Usage:**
```go
import emojilist "github.com/zewebdev1337/emojilist/v16"fmt.Println(emojilist.EMOJI_GRINNING_FACE) // Output: 😀
```**Naming:**
Emoji constants are named following the pattern `EMOJI_`, where `` is the emoji's descriptive name from the Unicode emoji test data, converted to uppercase and with spaces and special characters replaced by underscores. For example:
* "grinning face" becomes `EMOJI_GRINNING_FACE`
* "thumbs up light skin tone" becomes `EMOJI_THUMBS_UP_LIGHT_SKIN_TONE`
* "keycap *" becomes `EMOJI_KEYCAP_STAR`**Manually updating (or downgrading) the Emoji List:**
If this package is not updated or you need to follow constraints from an older emoji version (and manage to find the txt files for versions below v11), you can manually update the emoji list to a specific Unicode version. Simply update the version number at the top of the [emojilist](emojilist.go) file to point to the desired emoji test data file and run `go generate` in the root of the project to regenerate the file and directory with the updated emoji data.
**License:**
MIT