emoji

package
v3.1.61 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GemojiData = Gemoji{}/* 3395 elements not displayed */

Code generated by build/generate-emoji.go. DO NOT EDIT. Sourced from https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json

Functions

func FindEmojiSubmatchIndex

func FindEmojiSubmatchIndex(s string) []int

FindEmojiSubmatchIndex returns index pair of longest emoji in a string

func ReplaceAliases

func ReplaceAliases(s string) string

ReplaceAliases replaces all aliases of the form ":alias:" with its corresponding unicode value.

func ReplaceCodes

func ReplaceCodes(s string) string

ReplaceCodes replaces all emoji codes with the first corresponding emoji alias (in the form of ":alias:") (ie, "\u2618" will be converted to ":shamrock:").

Types

type Emoji

type Emoji struct {
	Emoji          string