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 = "๐" 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 = "๐" TopArrow = "๐" BackArrow = "๐" SoonArrow = "๐" FIRE = "๐ฅ" SNOW = "โ" WATER = "๐ง" FLASH = "โก" Eye = "๐" HeartStar = "๐" HeartBreak = "๐" HeartRed = "โค๏ธ" HeartOrange = "๐งก" HeartYellow = "๐" HeartGreen = "๐" // SUC ๐โโ๐ถโ๏ธ๐ฒโ๏ธโ๏ธ๐๐ข๐ก๐ต๐ฃ๐ โช๏ธ๐ฉ๐ฒ๐ณ SUC = "โ " FAIL = "โ" // TickSGreen square green tick ๆนๆก็ปฟ่ฒๅพ TickSGreen = "โ " // TickBlack black tick TickBlack = "โ๏ธ" // TickSBlack square black tick TickSBlack = "โ๏ธ" // BtnSingle ๅ้ๆ้ฎ BtnSingle = "๐" BtnSquare = "๐ฒ" // CircleSRed red solid circle ็บข่ฒๅฎๅฟๅๅ CircleSRed = "๐ด" // CircleSGreen green solid circle ็ปฟ่ฒๅฎๅฟๅๅ CircleSGreen = "๐ข" // CircleSYellow yellow solid circle ็ปฟ่ฒๅฎๅฟๅๅ CircleSYellow = "๐ก" Warning = "โ ๏ธ" QUESTION = "โ" // RedExcMark ็บข่ฒๆๅนๅท RedExcMark = "โ" // RedExcMarkD red double exclamation mark ็บข่ฒๅๆๅนๅท RedExcMarkD = "โผ๏ธ" // Points100 100ๅ็ฌฆๅท Points100 = "๐ฏ" // Recycling ๅๆถๆ ๅฟ Recycling = "โป๏ธ" Music1 = "๐ต" Music2 = "๐ถ" Clock = "โฐ" Clock4 = "๐" 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 return the input string.
Types ยถ
This section is empty.
Click to show internal directories.
Click to hide internal directories.