Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmojiSlice = []Emoji{}
EmojiSlice - Slice of emoji definitions
View Source
var Emojis = map[string]Emoji{}
Emojis - Map of Emoji Runes as Hex keys to their description
Functions ¶
func LookupEmojis ¶
LookupEmojis - Lookup definitions for each emoji in the input
Types ¶
type Emoji ¶
type Emoji struct { Key string `json:"key"` Value string `json:"value"` Descriptor string `json:"descriptor"` }
Emoji - Struct representing Emoji
func LookupEmoji ¶
LookupEmoji - Lookup a single emoji definition
type SearchResult ¶
SearchResult - Occurence of an emoji in a string
type SearchResults ¶
type SearchResults []SearchResult
SearchResults - The result of a search
func FindAll ¶
func FindAll(input string) (detectedEmojis SearchResults)
FindAll - Find all instances of emoji
func (SearchResults) IndexOf ¶
func (results SearchResults) IndexOf(result any) int
IndexOf - Check to see if search results contains a specific element
Click to show internal directories.
Click to hide internal directories.