gemoji

package module
v0.0.0-...-f913e33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 1 Imported by: 0

README

License GitHub Actions workflow status Go Report Card Go Report Card

Install

go get github.com/ahmadrosid/gemoji

Usage

Format

println(gemoji.Format("This is :rocket: and :smile:"))
// This is 🚀 and 😄

println(gemoji.Format("This is :rocket: and :smile: :invalid:"))
// This is 🚀 and 😄 :invalid:

Get Emoji

println(gemoji.Get(":rocket:")) // 🚀
println(gemoji.Get("heartbeat")) // 💓

Credit

emojicpp

LICENSE

The MIT License (MIT) - see LICENSE.md for more details

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Emoji = map[string]string{}/* 1046 elements not displayed */

Functions

func Format

func Format(str string) string

func Get

func Get(key string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL