File: README.md

package info (click to toggle)
golang-github-makeworld-the-better-one-go-isemoji 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 444 kB
  • sloc: makefile: 4
file content (26 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# go-isemoji
[![go reportcard](https://goreportcard.com/badge/github.com/makeworld-the-better-one/go-isemoji)](https://goreportcard.com/report/github.com/makeworld-the-better-one/go-isemoji)
[![GoDoc](https://godoc.org/github.com/makeworld-the-better-one/go-isemoji?status.svg)](https://godoc.org/github.com/makeworld-the-better-one/go-isemoji)
[![license](https://img.shields.io/github/license/makeworld-the-better-one/go-isemoji)](./LICENSE)


Go library to test if a string is an emoji.

## Install
You can add it to your project by running the following command:
```
go get -u github.com/makeworld-the-better-one/go-isemoji
```

## Usage
```go
isemoji.IsEmoji("🤗")    // True
isemoji.IsEmoji("test")  // False
isemoji.IsEmoji("🙇🏼‍♂️🤗")  // False, because there are multiple emojis
isemoji.Name("👨🏼‍🦰")       // "man: medium-light skin tone, red hair"
```

Find the full documentation on [godoc](https://godoc.org/github.com/makeworld-the-better-one/go-isemoji).

## License
This project is under the MIT License.