Skip to content

TimothyYe/countries-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

countries-emoji

Emoji characters for all countries.

Getting Started

Installing

Install Go and run go get:

$ go get -u github.com/TimothyYe/countries-emoji

Usage

Function

func GetEmojiFlag(countryCode string) string 

Parameter countryCode is an ISO 3166-1 alpha-2 code

Example

package main

import (
        "fmt"

        ce "github.com/TimothyYe/countries-emoji"
)

func main() {
        fmt.Println(ce.GetEmojiFlag("CN"))
}

output is:

🇨🇳

Releases

No releases published

Packages

No packages published

Languages