Skip to content

Commit

Permalink
add country code to flag converter
Browse files Browse the repository at this point in the history
  • Loading branch information
enescakir committed Feb 16, 2020
1 parent 6dc9ded commit 6e3e6ae
Show file tree
Hide file tree
Showing 4 changed files with 1,983 additions and 1,948 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ go get github.com/enescakir/emoji
)

func main() {
fmt.Printf("hello %v from %v\n", emoji.WavingHand, emoji.FlagsForFlagTurkey)
fmt.Printf("hello %v from %v\n",
emoji.WavingHand,
emoji.FlagsForFlagTurkey,
)
fmt.Printf("different skin tones. default: %v light: %v dark: %v\n",
emoji.ThumbsUp,
emoji.OkHand.Tone(emoji.Light),
emoji.CallMeHand.Tone(emoji.Dark),
)
fmt.Printf("emoji with multiple skins: %v\n", emoji.PeopleHoldingHands.Tone(emoji.Light, emoji.Dark))
fmt.Printf("emoji with multiple skins: %v\n",
emoji.PeopleHoldingHands.Tone(emoji.Light, emoji.Dark),
)
}

/* OUTPUT
Expand All @@ -40,14 +45,18 @@ go get github.com/enescakir/emoji

This package contains Full Emoji List v12.0 based on [https://unicode.org/Public/emoji/12.0/emoji-test.txt](https://unicode.org/Public/emoji/12.0/emoji-test.txt).

Also, you can generate country flag emoji with [ISO 3166 Alpha2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes:
```go
emoji.CountryFlag("tr") // 🇹🇷
```

## Testing :hammer:
``` bash
go test
```

## Todo :pushpin:
* Add `godoc`
* Add country code to flag emoji converter
* Add badges to README
* Add tests
* Add emoji constant generator
Expand Down
Loading

0 comments on commit 6e3e6ae

Please sign in to comment.