Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GemojiData = Gemoji{}/* 3395 elements not displayed */
Code generated by build/generate-emoji.go. DO NOT EDIT. Sourced from https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json
Functions ¶
func FindEmojiSubmatchIndex ¶
FindEmojiSubmatchIndex returns index pair of longest emoji in a string
func ReplaceAliases ¶
ReplaceAliases replaces all aliases of the form ":alias:" with its corresponding unicode value.
Types ¶
type Emoji ¶
type Emoji struct {
Emoji string
Description string
Aliases []string
UnicodeVersion string
SkinTones bool
}
Emoji represents a single emoji and associated data.
func FromAlias ¶
FromAlias retrieves the emoji data based on the provided alias in the form "alias" or ":alias:" (ie, "shamrock" or ":shamrock:" will return the Gemoji data for "shamrock").
Source Files
¶
- emoji.go
- emoji_data.go
Click to show internal directories.
Click to hide internal directories.