Documentation ¶
Overview ¶
Package emojilib is a port of the Emoji keyword library to Go
Installation ¶
Just go get the package:
go get -u github.com/peterhellberg/emojilib
Usage ¶
A small usage example
package main import ( "fmt" "github.com/peterhellberg/emojilib" ) func main() { fmt.Println(emojilib.ReplaceWithPadding("I :green_heart: You!")) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownEmoji = errors.New("unknown emoji")
ErrUnknownEmoji is returned from Find if provided with a unknown emoji name
View Source
var ErrUnknownKeyword = errors.New("unknown keyword")
ErrUnknownKeyword is returned from Keyword if provided with a unknown keyword
Functions ¶
func ReplaceWithPadding ¶
ReplaceWithPadding takes a string and replaces all emoji names with their emoji character and a space in order to display better in terminals
Types ¶
Click to show internal directories.
Click to hide internal directories.