Skip to content

Base emoji a Go library which encodes/decodes text to and from emojis.

License

Notifications You must be signed in to change notification settings

umahmood/baseemoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Emoji

Base emoji is a Go library which encodes/decodes text to and from emojis. For example, encoding the string "i love peanut butter" to base emoji becomes "👂 🔋 👊 🔦 🎲 🐬 🔋 💾 🐬 🌳 🔥 🐸 🍟 🔋 💫 🐸 🍟 🍟 🐬 🍀".

Installation

$ go get github.com/umahmood/baseemoji

Terminal Usage

$ baseemoji -e "hello world"

💧 🐬 👊 👊 🔦 🔋 💎 🔦 🍀 👊 💵

$ baseemoji -d "💧 🐬 👊 👊 🔦 🔋 💎 🔦 🍀 👊 💵"

hello world

Library Usage

package main

import (
    "fmt"
    
    "github.com/umahmood/baseemoji
)

func main() {
    e := baseemoji.EncodeString("the quick brown fox jumped over the lazy dog.")
    fmt.Println(e)
    d := baseemoji.DecodeString(e)
    fmt.Println(d)  
}

Output:

🍟 💧 🐬 🔋 🏈 🐸 👂 🐕 👓 🔋 💫 🍀 🔦 💎 🔥 🔋 🍩 🔦 👻 🔋 🌍 🐸 👣 💾 🐬 💵 🔋 🔦 🎲 🐬 🍀 🔋 🍟 💧 🐬 🔋 👊 🌳 🌐 🎁 🔋 💵 🔦 🚪

the quick brown fox jumped over the lazy dog.

Documentation

http://godoc.org/github.com/umahmood/baseemoji

License

See the LICENSE file for license rights and limitations (MIT).

About

Base emoji a Go library which encodes/decodes text to and from emojis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages