emoji

package module
v0.0.0-...-b09cca1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 7 Imported by: 0

README

emoji

emoji for golang, data come from https://github.com/iamcal/emoji-data/tree/master/build

generate map
cd translate
go run main.go
usage
import "github.com/17media/emoji"

emoji.Emojitize(message)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTable

func BuildTable(searchDir string) error

func Emoji

func Emoji(emoji string) string

Emoji returns the unicode value for the given emoji. If the specified emoji does not exist, Emoji() returns the empty string.

func Emojitize

func Emojitize(emojis string) string

Emojitize takes in a string with emojis specified in it, and returns a string with every emoji place holder replaced with it's unicode value (unless it could not be found, in which case it is let alone).

func WriteToGo

func WriteToGo(filepath string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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