Documentation ΒΆ
Index ΒΆ
- Constants
- func Decode(s string) string
- func Emoji(name string) string
- func Encode(s string) string
- func FromUnicode(s string) string
- func GetByName(name string) string
- func Render(str string) string
- func Search(kw string, limits ...int) (ret map[string]string)
- func ToUnicode(emoji string, prefix ...string) string
Constants ΒΆ
View Source
const ( ID = "π" KEY = "π" BOX = "π¦" GIFT = "π" CLOCK = "β°" FLAG = "π©" TOOL = "π§" GUN = "π«" DING = "π" STOP = "π«" DOC = "π" DIR = "π" BOOK = "π" RECYCLE = "β»" EDIT = "β" SMILE = "π" LAUGH = "π" LIKE = "π" ANGER = "π‘" HAPPY = "π" DOZE = "π΄" OK = "π" YES = "β" NO = "β" PRAISE = "π" TREAD = "π" STEP = "πΎ" UP = "π" DOWN = "π" LEFT = "π" RIGHT = "π" FIRE = "π₯" SNOW = "β" WATER = "π§" FLASH = "β‘" EYE = "π" HEART = "π" HEARTBREAK = "π" SUC = "β " FAIL = "β" WAN = "β" QUESTION = "β" CAR = "π" TREE = "π²" FLOWER = "πΊ" PEAR = "π" APPLE = "π" ELEPHANT = "π" WHALE = "π³" SUN = "π" STAR = "β" MOON = "π" EARTH = "π" )
some simple emoji chars
Variables ΒΆ
This section is empty.
Functions ΒΆ
func Decode ΒΆ
Decode a string, convert unicode to emoji chat Usage:
str := Decode("a msg [\u1f496]")
func FromUnicode ΒΆ
FromUnicode unicode string to emoji string Usage:
emoji := FromUnicode("\U0001f496")
func GetByName ΒΆ
GetByName returns the unicode value for the given emoji name. If the specified emoji does not exist, will returns the input string.
Types ΒΆ
This section is empty.
Click to show internal directories.
Click to hide internal directories.