Documentation
¶
Index ¶
- Constants
- type Emoji
- type EmojiMap
- func (em EmojiMap) CodeToEmoji(code string) string
- func (em EmojiMap) FindOne(keywords ...string) *Emoji
- func (em EmojiMap) First() *Emoji
- func (em EmojiMap) Get(name string) *Emoji
- func (em EmojiMap) Len() int
- func (em EmojiMap) Lookup(name string) (*Emoji, bool)
- func (em EmojiMap) NameToEmoji(name string) string
- func (em EmojiMap) RenderCodes(text string) string
- func (em EmojiMap) Search(keywords []string, limit int) EmojiMap
- func (em EmojiMap) String() string
Constants ¶
View Source
const ( LangEN = "en" LangZH = "zh-CN" )
languages
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emoji ¶
type Emoji struct {
Name string
Code string
Emoji string
Entity string
Semver string
Description string
}
Emoji struct
type EmojiMap ¶
EmojiMap data. key is code name: Emoji.ID()
func (EmojiMap) CodeToEmoji ¶
CodeToEmoji convert
func (EmojiMap) NameToEmoji ¶
NameToEmoji convert
func (EmojiMap) RenderCodes ¶
RenderCodes to emojis
Click to show internal directories.
Click to hide internal directories.