Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/makew0rld/go-isemoji

Go library to test if a string is an emoji.
https://github.com/makew0rld/go-isemoji

Last synced: 2 months ago
JSON representation

Go library to test if a string is an emoji.

Awesome Lists containing this project

README

        

# 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.

## 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.