mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
16 lines
316 B
Go
Executable File
16 lines
316 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/emoji"
|
|
)
|
|
|
|
// Get the flag for a country. Requires country code e.g GB for great britain
|
|
func GetFlagByCountryCode() {
|
|
emojiService := emoji.NewEmojiService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := emojiService.Flag(&emoji.FlagRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|