Skip to content
/ emoji Public

A tiny auto-generated Go library for working with Emojis.

Notifications You must be signed in to change notification settings

Kelwing/emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emoji

A tiny auto-generated Go library for working with Emojis. Provides the ability to format strings containing shortcodes, convert shortcodes to the corresponding emojis, and convert an emoji to a list of shortcodes.

Data extracted from Emojibase.

Examples

fmt.Println(emoji.Emoji("wave"))

Output: 👋
fmt.Println(emoji.Shortcodes("👋"))

Output: ["wave", "waving_hand"]
fmt.Println(emoji.Format("Hello! :wave:"))

Output: Hello! 👋