emoji

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

View Source
const ANGER = "😑"
View Source
const APPLE = "🍎"
View Source
const BOOK = "πŸ“”"
View Source
const BOX = "πŸ“¦"
View Source
const CAR = "πŸš•"
View Source
const CLOCK = "⏰"
View Source
const DING = "πŸ“Œ"
View Source
const DIR = "πŸ“‚"
View Source
const DOC = "πŸ“„"
View Source
const DOWN = "πŸ‘‡"
View Source
const DOZE = "😴"
View Source
const EARTH = "🌏"
View Source
const EDIT = "✍"
View Source
const ELEPHANT = "🐘"
View Source
const EYE = "πŸ‘€"
View Source
const FAIL = "❌"
View Source
const FIRE = "πŸ”₯"
View Source
const FLAG = "🚩"
View Source
const FLASH = "⚑"
View Source
const FLOWER = "🌺"
View Source
const GIFT = "🎁"
View Source
const GUN = "πŸ”«"
View Source
const HAPPY = "πŸ˜€"
View Source
const HEART = "πŸ’–"
View Source
const HEARTBREAK = "πŸ’”"
View Source
const ID = "πŸ†”"
View Source
const KEY = "πŸ”‘"
View Source
const LAUGH = "πŸ˜†"
View Source
const LEFT = "πŸ‘ˆ"
View Source
const LIKE = "😍"
View Source
const MOON = "🌜"
View Source
const NO = "βœ‹"
View Source
const OK = "πŸ‘Œ"
View Source
const PEAR = "🍐"
View Source
const PRAISE = "πŸ‘"
View Source
const QUESTION = "❓"
View Source
const RECYCLE = "β™»"
View Source
const RIGHT = "πŸ‘‰"
View Source
const SMILE = "😊"
View Source
const SNOW = "❄"
View Source
const STAR = "⭐"
View Source
const STEP = "🐾"
View Source
const STOP = "🚫"
View Source
const SUC = "βœ…"
View Source
const SUN = "🌞"
View Source
const TOOL = "πŸ”§"
View Source
const TREAD = "πŸ‘Ž"
View Source
const TREE = "🌲"
View Source
const UP = "πŸ‘†"
View Source
const WAN = "❗"
View Source
const WATER = "πŸ’§"
View Source
const WHALE = "🐳"
View Source
const YES = "✌"

Variables ΒΆ

This section is empty.

Functions ΒΆ

func Decode ΒΆ

func Decode(s string) string

Decode a string, convert unicode to emoji chat Usage:

str := Decode("a msg [\u1f496]")

func Emoji ΒΆ

func Emoji(name string) string

Emoji is alias of the GetByName()

func Encode ΒΆ

func Encode(s string) string

Encode a string, convert emoji chat to unicode string

func FromUnicode ΒΆ

func FromUnicode(s string) string

FromUnicode unicode string to emoji string Usage:

emoji := FromUnicode("\U0001f496")

func GetByName ΒΆ

func GetByName(name string) string

GetByName returns the unicode value for the given emoji name. If the specified emoji does not exist, will returns the input string.

func Render ΒΆ

func Render(str string) string

Render a string, parse emoji name, returns rendered string. Usage:

msg := Render("a :smile: message")
fmt.Println(msg)
func Search(kw string, limits ...int) (ret map[string]string)

Search emoji by name

func ToUnicode ΒΆ

func ToUnicode(emoji string, prefix ...string) string

ToUnicode unicode string to emoji string Usage:

unicode := ToUnicode("πŸ’–")
fmt.Print(unicode) // "1f496"
// with prefix
unicode := ToUnicode("πŸ’–", "\U000") // "\U0001f496"
fmt.Print(unicode) // "πŸ’–"

Types ΒΆ

This section is empty.

Jump to

Keyboard shortcuts

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