gmoji
is a emoji library for Go. It lets you use emoji characters in strings and you can use in Terminal.
In Go 1.16
to install if you have the following problem
no required module provides package github.com/sami2020pro/gmoji: working directory is not part of a module
you must use the following command
go env -w GO111MODULE=auto
go get -u github.com/sami2020pro/gmoji
if you don't have a problem, use the following command as before
go get -u github.com/sami2020pro/gmoji
Note: if you want to read more about Go 1.16 modules click here
Use the following command to run the test
go test -v
package main
import (
"fmt"
"github.com/sami2020pro/gmoji"
)
func main() {
fmt.Printf("Hello %v\n", gmoji.Fire)
emoji := gmoji.GitHub
fmt.Printf("I love %v\n", emoji)
fmt.Println(gmoji.Parse("Emoji aliases are :Plus:"))
gmoji.Println("Use fmt wrappers :Eye:")
gmoji.Print("Golang is :HeartOutlined:\n")
}
Output
fontawesome 1.0 to 3.0 is available
You can send Pull Request
The MIT License (MIT). Please see License File for more information.