2019-11-17 22:01:03 +00:00
|
|
|
# Emoji
|
|
|
|
Emoji is a simple golang package.
|
|
|
|
|
2023-01-28 21:57:53 +00:00
|
|
|
![master workflow](https://github.com/kyokomi/emoji/actions/workflows/go.yml/badge.svg)
|
2019-11-17 22:01:03 +00:00
|
|
|
[![Coverage Status](https://coveralls.io/repos/kyokomi/emoji/badge.png?branch=master)](https://coveralls.io/r/kyokomi/emoji?branch=master)
|
2021-04-03 17:16:46 +00:00
|
|
|
[![GoDoc](https://pkg.go.dev/badge/github.com/kyokomi/emoji.svg)](https://pkg.go.dev/github.com/kyokomi/emoji/v2)
|
2019-11-17 22:01:03 +00:00
|
|
|
|
|
|
|
Get it:
|
|
|
|
|
|
|
|
```
|
2021-04-03 17:16:46 +00:00
|
|
|
go get github.com/kyokomi/emoji/v2
|
2019-11-17 22:01:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Import it:
|
|
|
|
|
|
|
|
```
|
|
|
|
import (
|
2021-04-03 17:16:46 +00:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 22:01:03 +00:00
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2021-04-03 17:16:46 +00:00
|
|
|
"github.com/kyokomi/emoji/v2"
|
2019-11-17 22:01:03 +00: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 17:16:46 +00:00
|
|
|
- [unicode Emoji Charts](http://www.unicode.org/emoji/charts/emoji-list.html)
|
2019-11-17 22:01:03 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT](https://github.com/kyokomi/emoji/blob/master/LICENSE)
|