emoji

package
v0.62.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmojiDataShortcodeMap

func GetEmojiDataShortcodeMap() map[string]Emoji

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter() Converter

func (*Converter) ConvertShortcodesString

func (conv *Converter) ConvertShortcodesString(input string, emoType EmojiType) string

type Emoji

type Emoji struct {
	ASCII       string
	Shortcode   string
	Unicode     string
	ShortcodeRx *regexp.Regexp
}

type EmojiType

type EmojiType int
const (
	Shortcode EmojiType = iota
	ASCII
	Unicode
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL