Documentation
¶
Overview ¶
Package emoji provides emoji lookup, search, and category queries backed by the embedded Unicode CLDR emoji dataset.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emoji ¶
type Emoji struct {
Emoji string `json:"emoji"`
Name string `json:"name"`
Category string `json:"category"`
Unicode string `json:"unicode"`
}
Emoji represents a single emoji with its metadata.
type Service ¶
type Service struct{}
Service provides emoji lookup and search operations.
func (*Service) ByCategory ¶
ByCategory returns all emojis in the given category (case-insensitive). Returns a List with matching results.
func (*Service) Categories ¶
Categories returns the distinct emoji categories in the dataset, in order of first appearance.
func (*Service) GetByName ¶
GetByName returns the emoji matching the given name (snake_case). Returns the emoji and true if found, or a zero value and false if not.
Click to show internal directories.
Click to hide internal directories.