Converts a string country code to an emoji in Go.
go get -u github.com/jayco/go-emoji-flag
Will return a flag from the supported list below or an empty string if the flag is not found.
package main
import (
"fmt"
emoji "github.com/jayco/go-emoji-flag"
)
func main() {
fmt.Println(emoji.GetFlag("AUS")) // prints ๐ฆ๐บ
fmt.Println(emoji.GetFlag("AU")) // prints ๐ฆ๐บ
fmt.Println(emoji.GetFlag("BOB")) // prints
}
BRB/BB - ๐ง๐ง
FLK/FK - ๐ซ๐ฐ
LVA/LV - ๐ฑ๐ป
OMN/OM - ๐ด๐ฒ
HRV/HR - ๐ญ๐ท
MNG/MN - ๐ฒ๐ณ
RWA/RW - ๐ท๐ผ
SYR/SY - ๐ธ๐พ
KHM/KH - ๐ฐ๐ญ
NAM/NA - ๐ณ๐ฆ
KNA/KN - ๐ฐ๐ณ
TKL/TK - ๐น๐ฐ
PAK/PK - ๐ต๐ฐ
PRI/PR - ๐ต๐ท
WLF/WF - ๐ผ๐ซ
ARG/AR - ๐ฆ๐ท
BHS/BS - ๐ง๐ธ
GAB/GA - ๐ฌ๐ฆ
JAM/JM - ๐ฏ๐ฒ
RUS/RU - ๐ท๐บ
SDN/SD - ๐ธ๐ฉ
LBY/LY - ๐ฑ๐พ
NOR/NO - ๐ณ๐ด
SUR/SR - ๐ธ๐ท
HMD/HM - ๐ญ๐ฒ
ATG/AG - ๐ฆ๐ฌ
BHR/BH - ๐ง๐ญ
CPV/CV - ๐จ๐ป
CCK/CC - ๐จ๐จ
ATA/AQ - ๐ฆ๐ถ
PYF/PF - ๐ต๐ซ
NRU/NR - ๐ณ๐ท
GGY/GG - ๐ฌ๐ฌ
ZAF/ZA - ๐ฟ๐ฆ
ESP/ES - ๐ช๐ธ
BOL/BO - ๐ง๐ด
DNK/DK - ๐ฉ๐ฐ
REU/RE - ๐ท๐ช
SLB/SB - ๐ธ๐ง
BGR/BG - ๐ง๐ฌ
KGZ/KG - ๐ฐ๐ฌ
MAR/MA - ๐ฒ๐ฆ
TWN/TW - ๐น๐ผ
ISL/IS - ๐ฎ๐ธ
MWI/MW - ๐ฒ๐ผ
THA/TH - ๐น๐ญ
AZE/AZ - ๐ฆ๐ฟ
HKG/HK - ๐ญ๐ฐ
COM/KM - ๐ฐ๐ฒ
FRO/FO - ๐ซ๐ด
VGB/VG - ๐ป๐ฌ
COD/CD - ๐จ๐ฉ
SHN/SH - ๐ธ๐ญ
YEM/YE - ๐พ๐ช
BMU/BM - ๐ง๐ฒ
EST/EE - ๐ช๐ช
LSO/LS - ๐ฑ๐ธ
MYS/MY - ๐ฒ๐พ
IMN/IM - ๐ฎ๐ฒ
LTU/LT - ๐ฑ๐น
SGP/SG - ๐ธ๐ฌ
BRA/BR - ๐ง๐ท
FSM/FM - ๐ซ๐ฒ
PSE/PS - ๐ต๐ธ
TZA/TZ - ๐น๐ฟ
GNQ/GQ - ๐ฌ๐ถ
KEN/KE - ๐ฐ๐ช
ASM/AS - ๐ฆ๐ธ
AND/AD - ๐ฆ๐ฉ
MTQ/MQ - ๐ฒ๐ถ
NLD/NL - ๐ณ๐ฑ
SLV/SV - ๐ธ๐ป
MDA/MD - ๐ฒ๐ฉ
PRY/PY - ๐ต๐พ
BLM/BL - ๐ง๐ฑ
ROU/RO - ๐ท๐ด
CMR/CM - ๐จ๐ฒ
IND/IN - ๐ฎ๐ณ
MDG/MG - ๐ฒ๐ฌ
MOZ/MZ - ๐ฒ๐ฟ
MSR/MS - ๐ฒ๐ธ
TKM/TM - ๐น๐ฒ
UZB/UZ - ๐บ๐ฟ
GUY/GY - ๐ฌ๐พ
KAZ/KZ - ๐ฐ๐ฟ
MKD/MK - ๐ฒ๐ฐ
MLT/MT - ๐ฒ๐น
SSD/SS - ๐ธ๐ธ
ALB/AL - ๐ฆ๐ฑ
BFA/BF - ๐ง๐ซ
COK/CK - ๐จ๐ฐ
GRC/GR - ๐ฌ๐ท
GHA/GH - ๐ฌ๐ญ
MAF/MF - ๐ฒ๐ซ
COL/CO - ๐จ๐ด
PRK/KP - ๐ฐ๐ต
LIE/LI - ๐ฑ๐ฎ
MCO/MC - ๐ฒ๐จ
BTN/BT - ๐ง๐น
VAT/VA - ๐ป๐ฆ
MYT/YT - ๐พ๐น
SVK/SK - ๐ธ๐ฐ
TTO/TT - ๐น๐น
LAO/LA - ๐ฑ๐ฆ
MLI/ML - ๐ฒ๐ฑ
SAU/SA - ๐ธ๐ฆ
CHE/CH - ๐จ๐ญ
EGY/EG - ๐ช๐ฌ
ETH/ET - ๐ช๐น
PER/PE - ๐ต๐ช
PCN/PN - ๐ต๐ณ
AUT/AT - ๐ฆ๐น
BIH/BA - ๐ง๐ฆ
BWA/BW - ๐ง๐ผ
CAN/CA - ๐จ๐ฆ
VCT/VC - ๐ป๐จ
ARE/AE - ๐ฆ๐ช
VIR/VI - ๐ป๐ฎ
IOT/IO - ๐ฎ๐ด
CAF/CF - ๐จ๐ซ
ISR/IL - ๐ฎ๐ฑ
URY/UY - ๐บ๐พ
PRT/PT - ๐ต๐น
BLR/BY - ๐ง๐พ
HTI/HT - ๐ญ๐น
UGA/UG - ๐บ๐ฌ
AFG/AF - ๐ฆ๐ซ
CYP/CY - ๐จ๐พ
GTM/GT - ๐ฌ๐น
IRQ/IQ - ๐ฎ๐ถ
TUR/TR - ๐น๐ท
AGO/AO - ๐ฆ๐ด
DJI/DJ - ๐ฉ๐ฏ
IDN/ID - ๐ฎ๐ฉ
SGS/GS - ๐ฌ๐ธ
SRB/RS - ๐ท๐ธ
SJM/SJ - ๐ธ๐ฏ
ZWE/ZW - ๐ฟ๐ผ
CUB/CU - ๐จ๐บ
GNB/GW - ๐ฌ๐ผ
SWZ/SZ - ๐ธ๐ฟ
SPM/PM - ๐ต๐ฒ
GBR/GB - ๐ฌ๐ง
ABW/AW - ๐ฆ๐ผ
MAC/MO - ๐ฒ๐ด
NIC/NI - ๐ณ๐ฎ
MNP/MP - ๐ฒ๐ต
LBR/LR - ๐ฑ๐ท
SMR/SM - ๐ธ๐ฒ
DZA/DZ - ๐ฉ๐ฟ
BRN/BN - ๐ง๐ณ
DEU/DE - ๐ฉ๐ช
TLS/TL - ๐น๐ฑ
NPL/NP - ๐ณ๐ต
POL/PL - ๐ต๐ฑ
TON/TO - ๐น๐ด
BVT/BV - ๐ง๐ป
CHL/CL - ๐จ๐ฑ
ECU/EC - ๐ช๐จ
MEX/MX - ๐ฒ๐ฝ
CZE/CZ - ๐จ๐ฟ
GEO/GE - ๐ฌ๐ช
ARM/AM - ๐ฆ๐ฒ
BLZ/BZ - ๐ง๐ฟ
MHL/MH - ๐ฒ๐ญ
AUS/AU - ๐ฆ๐บ
GRL/GL - ๐ฌ๐ฑ
NGA/NG - ๐ณ๐ฌ
GUM/GU - ๐ฌ๐บ
JPN/JP - ๐ฏ๐ต
VEN/VE - ๐ป๐ช
PAN/PA - ๐ต๐ฆ
TJK/TJ - ๐น๐ฏ
BEL/BE - ๐ง๐ช
DOM/DO - ๐ฉ๐ด
ERI/ER - ๐ช๐ท
MNE/ME - ๐ฒ๐ช
LCA/LC - ๐ฑ๐จ
SEN/SN - ๐ธ๐ณ
FIN/FI - ๐ซ๐ฎ
GRD/GD - ๐ฌ๐ฉ
IRL/IE - ๐ฎ๐ช
JOR/JO - ๐ฏ๐ด
PLW/PW - ๐ต๐ผ
SVN/SI - ๐ธ๐ฎ
BGD/BD - ๐ง๐ฉ
TCD/TD - ๐น๐ฉ
JEY/JE - ๐ฏ๐ช
MDV/MV - ๐ฒ๐ป
MRT/MR - ๐ฒ๐ท
NER/NE - ๐ณ๐ช
USA/US - ๐บ๐ธ
AIA/AI - ๐ฆ๐ฎ
BEN/BJ - ๐ง๐ฏ
NIU/NU - ๐ณ๐บ
CHN/CN - ๐จ๐ณ
CXR/CX - ๐จ๐ฝ
ESH/EH - ๐ช๐ญ
QAT/QA - ๐ถ๐ฆ
TGO/TG - ๐น๐ฌ
TCA/TC - ๐น๐จ
GLP/GP - ๐ฌ๐ต
KIR/KI - ๐ฐ๐ฎ
KOR/KR - ๐ฐ๐ท
MUS/MU - ๐ฒ๐บ
GUF/GF - ๐ฌ๐ซ
ALA/AX - ๐ฆ๐ฝ
PHL/PH - ๐ต๐ญ
SWE/SE - ๐ธ๐ช
VUT/VU - ๐ป๐บ
HUN/HU - ๐ญ๐บ
SLE/SL - ๐ธ๐ฑ
CIV/CI - ๐จ๐ฎ
FJI/FJ - ๐ซ๐ฏ
LKA/LK - ๐ฑ๐ฐ
UKR/UA - ๐บ๐ฆ
ZMB/ZM - ๐ฟ๐ฒ
COG/CG - ๐จ๐ฌ
DMA/DM - ๐ฉ๐ฒ
HND/HN - ๐ญ๐ณ
UMI/UM - ๐บ๐ฒ
PNG/PG - ๐ต๐ฌ
CRI/CR - ๐จ๐ท
GMB/GM - ๐ฌ๐ฒ
IRN/IR - ๐ฎ๐ท
NZL/NZ - ๐ณ๐ฟ
BDI/BI - ๐ง๐ฎ
FRA/FR - ๐ซ๐ท
ITA/IT - ๐ฎ๐น
LBN/LB - ๐ฑ๐ง
KWT/KW - ๐ฐ๐ผ
WSM/WS - ๐ผ๐ธ
STP/ST - ๐ธ๐น
TUN/TN - ๐น๐ณ
TUV/TV - ๐น๐ป
CYM/KY - ๐ฐ๐พ
SYC/SC - ๐ธ๐จ
VNM/VN - ๐ป๐ณ
ATF/TF - ๐น๐ซ
GIB/GI - ๐ฌ๐ฎ
LUX/LU - ๐ฑ๐บ
MMR/MM - ๐ฒ๐ฒ
GIN/GN - ๐ฌ๐ณ
NCL/NC - ๐ณ๐จ
NFK/NF - ๐ณ๐ซ
SOM/SO - ๐ธ๐ด