mirror of
https://github.com/emojisum/emojisum.git
synced 2025-08-03 13:50:27 +00:00
emoji: make the list an independent doc
during this draft phase, the authoritative document for the ordering of the emoji needs to be consumable by other languages and as a library. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a2456feb8f
commit
2332d1260c
6 changed files with 583 additions and 266 deletions
9
emoji/map.go
Normal file
9
emoji/map.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
//go:generate go run map_json.go
|
||||
|
||||
package emoji
|
||||
|
||||
// Map returns the emoji at the provided position.
|
||||
// This list is from 0-255
|
||||
func Map(b byte) string {
|
||||
return sumList[int(b)]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue