emoji

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 2 Imported by: 0

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