2019-11-17 14:01:03 -08:00
|
|
|
# Emoji
|
|
|
|
Emoji is a simple golang package.
|
|
|
|
|
2023-01-28 13:57:53 -08:00
|
|
|

|
2019-11-17 14:01:03 -08:00
|
|
|
[](https://coveralls.io/r/kyokomi/emoji?branch=master)
|
2021-04-03 10:16:46 -07:00
|
|
|
[](https://pkg.go.dev/github.com/kyokomi/emoji/v2)
|
2019-11-17 14:01:03 -08:00
|
|
|
|
|
|
|
Get it:
|
|
|
|
|
|
|
|
```
|
2021-04-03 10:16:46 -07:00
|
|
|
go get github.com/kyokomi/emoji/v2
|
2019-11-17 14:01:03 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
Import it:
|
|
|
|
|
|
|
|
```
|
|
|
|
import (
|
2021-04-03 10:16:46 -07:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 14:01:03 -08:00
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2021-04-03 10:16:46 -07:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 14:01:03 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
fmt.Println("Hello World Emoji!")
|
|
|
|
|
|
|
|
emoji.Println(":beer: Beer!!!")
|
|
|
|
|
|
|
|
pizzaMessage := emoji.Sprint("I like a :pizza: and :sushi:!!")
|
|
|
|
fmt.Println(pizzaMessage)
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Demo
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
## Reference
|
|
|
|
|
2021-04-03 10:16:46 -07:00
|
|
|
- [unicode Emoji Charts](http://www.unicode.org/emoji/charts/emoji-list.html)
|
2019-11-17 14:01:03 -08:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT](https://github.com/kyokomi/emoji/blob/master/LICENSE)
|