Emoji characters for all countries.
Install Go and run go get
:
$ go get -u github.com/TimothyYe/countries-emoji
func GetEmojiFlag(countryCode string) string
Parameter countryCode
is an ISO 3166-1 alpha-2 code
package main
import (
"fmt"
ce "github.com/TimothyYe/countries-emoji"
)
func main() {
fmt.Println(ce.GetEmojiFlag("CN"))
}
output is:
🇨🇳