1
0
Fork 0
mirror of https://github.com/emojisum/emojisum.git synced 2025-08-03 13:50:27 +00:00

emoji: provide options for each position

Per https://github.com/vbatts/emojisum/issues/5 there are some options
in this list that are better expressed as a unicode codepoint.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-07 10:17:50 -05:00
parent aa14e6436d
commit 62919c069f
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 783 additions and 517 deletions

View file

@ -4,7 +4,7 @@ package emoji
// Map returns the emoji at the provided position.
// This list is from 0-255
func Map(b byte) string {
func Map(b byte) Words {
return mapGen.EmojiWords[int(b)]
}
@ -21,5 +21,9 @@ type VersionedMap struct {
Description string `json:"description"`
Version string `json:"version"`
// these are an ordered list, referened by a byte (each byte of a checksum digest)
EmojiWords []string `json:"emojiwords"`
EmojiWords []Words `json:"emojiwords"`
}
// Words are a set of options to represent an emoji.
// Possible options could be the ":colon_notion:" or a "U+26CF" style codepoint.
type Words []string