emojilist

package module
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 0 Imported by: 0

README

emojilist

This package provides a full list of fully qualified emoji characters as constants using data from the Unicode emoji test data. That's it.

The emojilist.go file within this package is auto-generated using go generate, see codegen.

Usage:

import emojilist "github.com/zewebdev1337/emojilist/v16"

fmt.Println(emojilist.EMOJI_GRINNING_FACE) // Output: 😀

Naming:

Emoji constants are named following the pattern EMOJI_<EMOJI_NAME>, where <EMOJI_NAME> 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 THUMBS_UP_LIGHT_SKIN_TONE
  • "keycap *" becomes 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 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL