عکس sami2020pro
gmoji is a emoji library for Go. It lets you use emoji characters in strings and you can use in Terminal.Go
موضوع‌ها
۰
فورک‌ها
۳
ستاره‌ها
۱۱
تاریخ ایجاد
۱۶ آبان ۱۳۹۹
آخرین بروزرسانی
بیشتر از ۱ سال قبل
لایسنس
MIT License

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.