2019-11-17 23:01:03 +01:00
|
|
|
# Emoji
|
|
|
|
Emoji is a simple golang package.
|
|
|
|
|
|
|
|
[![wercker status](https://app.wercker.com/status/7bef60de2c6d3e0e6c13d56b2393c5d8/s/master "wercker status")](https://app.wercker.com/project/byKey/7bef60de2c6d3e0e6c13d56b2393c5d8)
|
|
|
|
[![Coverage Status](https://coveralls.io/repos/kyokomi/emoji/badge.png?branch=master)](https://coveralls.io/r/kyokomi/emoji?branch=master)
|
2021-04-03 19:16:46 +02:00
|
|
|
[![GoDoc](https://pkg.go.dev/badge/github.com/kyokomi/emoji.svg)](https://pkg.go.dev/github.com/kyokomi/emoji/v2)
|
2019-11-17 23:01:03 +01:00
|
|
|
|
|
|
|
Get it:
|
|
|
|
|
|
|
|
```
|
2021-04-03 19:16:46 +02:00
|
|
|
go get github.com/kyokomi/emoji/v2
|
2019-11-17 23:01:03 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Import it:
|
|
|
|
|
|
|
|
```
|
|
|
|
import (
|
2021-04-03 19:16:46 +02:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 23:01:03 +01:00
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2021-04-03 19:16:46 +02:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 23:01:03 +01: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
|
|
|
|
|
|
|
|
![demo](screen/image.png)
|
|
|
|
|
|
|
|
## Reference
|
|
|
|
|
2021-04-03 19:16:46 +02:00
|
|
|
- [unicode Emoji Charts](http://www.unicode.org/emoji/charts/emoji-list.html)
|
2019-11-17 23:01:03 +01:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT](https://github.com/kyokomi/emoji/blob/master/LICENSE)
|