+
Skip to content

sami2020pro/gmoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmoji 😎

Watch the video

gmoji is a emoji library for Go. It lets you use emoji characters in strings and you can use in Terminal.

Install 🤠

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

Tests 🧪

Use the following command to run the test

go test -v

Usage ✊

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

Contributing 💻

You can send Pull Request

References 📃

Credits ⭐

License 📜

The MIT License (MIT). Please see License File for more information.

About

gmoji is a emoji library for Go. It lets you use emoji characters in strings and you can use in Terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载