Compare commits

...

2 Commits
1.0 ... master

Author SHA1 Message Date
7bf70a9dc6 With -a, display all 2021-05-28 14:44:16 -05:00
72af16723b Go Mod 2021-05-28 14:42:25 -05:00
3 changed files with 8 additions and 2 deletions

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module git.bullercodeworks.com/brian/emt
go 1.16
require github.com/kyokomi/emoji v2.2.4+incompatible

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/kyokomi/emoji v2.2.4+incompatible h1:np0woGKwx9LiHAQmwZx79Oc0rHpNw3o+3evou4BEPv4=
github.com/kyokomi/emoji v2.2.4+incompatible/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=

View File

@ -21,7 +21,7 @@ func main() {
if v == "-a" {
getApprox = true
} else if v == "-completion-list" {
for k, _ := range allEmoji {
for k := range allEmoji {
fmt.Print(strings.Trim(k, ":"), " ")
}
} else {
@ -39,7 +39,6 @@ func main() {
for k, v := range allEmoji {
if strings.Contains(k, which) {
fmt.Println(v)
os.Exit(0)
}
}
}