Documentation
¶
Overview ¶
Package emoji is designed to recognize and parse every individual Unicode Emoji characters from a string.
Unicode Emoji Documents: https://www.unicode.org/Public/emoji/
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterEmoji ¶
Types ¶
type CharIterator ¶
CharIterator is used in RangeChars
func IterateChars ¶
func IterateChars(s string) CharIterator
IterateChars iterates a string, and extract every characters.
Example ¶
package main
import (
"fmt"
emoji "github.com/bincooo/go.emoji"
)
func main() {
s := "China:🇨🇳;Japan:🇯🇵"
for it := emoji.IterateChars(s); it.Next(); {
fmt.Println(it.Current(), "-", it.CurrentIsEmoji())
}
}
Output: C - false h - false i - false n - false a - false : - false 🇨🇳 - true ; - false J - false a - false p - false a - false n - false : - false 🇯🇵 - true
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
official
Package official indicates official unicode emoji variables.
|
Package official indicates official unicode emoji variables. |
|
tool/const
command
|