sami2020pro / gmoji

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

Home Page:https://pkg.go.dev/github.com/sami2020pro/gmoji

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://pkg.go.dev/github.com/sami2020pro/gmoji

License:MIT License


Languages

Language:Go 100.0%