mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
19 lines
390 B
Go
Executable File
19 lines
390 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/go.m3o.com/emoji"
|
|
)
|
|
|
|
// Print text and renders the emojis with aliases e.g
|
|
// let's grab a :beer: becomes let's grab a 🍺
|
|
func PrintTextIncludingEmoji() {
|
|
emojiService := emoji.NewEmojiService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := emojiService.Print(&emoji.PrintRequest{
|
|
Text: "let's grab a :beer:",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|