The reason of this project, is that I like emoji and I wanted to make a small project to facilitate their use in my programs in Go.
Fell free to request functionality and/or made PR 💞
Date: 2023-02-27
Release ID: ec6385419fb70e8910ca673133a19047e3a7442190c7ce9dd068f06ac522a946
Number of ...
- Emoji:
1853
- Keywords:
2965
- Category:
10
- Get emoji and information by its name or picto 🧐
- Find emojis and information by category or keywords 🔍
- Get all emojis into a map formatted 🗃
- Find number of emojis in a category 🧮
- List emojis in a string #1
- Replace emojis in a string #4
- Apply emojis from slugs into a string #2
To begin with the latest version you can import it in your project:
import "github.com/IGLOU-EU/gomoji"
Don't forget to run go mod tidy
to update the project and download it.
You can use it directly with global var, from global slice, or with exported function.
Exemple:
package main
import (
"fmt"
"github.com/IGLOU-EU/gomoji"
)
func main() {
fmt.Println("I like", gomoji.Get("penguin").Picto);
fmt.Println("There is multiple birds into emoji");
for _, p := range gomoji.ByKeyword("bird") {
fmt.Println("-", p.Picto);
}
fmt.Printf("Here, this emoji is new, I would like to know its information :\n%#v", gomoji.Info("🧌"));
}