1
0
Fork 0
mirror of https://github.com/emojisum/emojisum.git synced 2024-11-27 09:45:40 +00:00

main: use the Words map

This is naive to begin with, as I know that the first position of the
Words map is the 😃 notation. Though since main.go is expecting
the colon notation, but could eventually get a Unicode codepoint, there
ought to be checking for this.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-07 10:20:36 -05:00
parent 62919c069f
commit 62f21228f8
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -174,7 +174,7 @@ func Sum(r io.Reader) ([]byte, error) {
func emojiFromBytes(buf []byte) string {
var ret string
for _, b := range buf {
ret = ret + esum.Map(b)
ret = ret + esum.Map(b)[0]
}
return ret
}