emoji

package
v12.58.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package emoji provides methods for working with emojis

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emojize

func Emojize(text string) string

Emojize replaces emoji codes by emoji symbols

Example
fmt.Println(Emojize("Hi :smile:!"))
Output:

Hi 😄!

func Find

func Find(name string) []string

Find tries to find emojis by name

Example
fmt.Printf("%#v\n", Find("baby_"))
Output:

func Get

func Get(name string) string

Get tries to find emoji by it name

Example
fmt.Println(Get("zap"))
Output:

⚡️

func GetName

func GetName(emoji string) string

GetName tries to find name of emoji

Example
fmt.Println(GetName("⚡️"))
Output:

zap

Types

This section is empty.

Jump to

Keyboard shortcuts

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