|
|
|
@ -107,7 +107,7 @@ func (em Table) String() string {
|
|
|
|
|
// See <https://github.com/googlei18n/noto-emoji/tree/master/png/128>
|
|
|
|
|
func ScanEmojiDirectory(emojipath string) (tab Table, err error) {
|
|
|
|
|
tab = make(Table)
|
|
|
|
|
filepath.Walk(emojipath, func(path string, info os.FileInfo, err error) error {
|
|
|
|
|
err = filepath.Walk(emojipath, func(path string, info os.FileInfo, err error) error {
|
|
|
|
|
// Ignore non-images
|
|
|
|
|
if !strings.HasSuffix(strings.ToLower(path), ".png") {
|
|
|
|
|
return nil
|
|
|
|
|