Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
7bf70a9dc6 | |||
72af16723b |
5
go.mod
Normal file
5
go.mod
Normal 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
2
go.sum
Normal 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=
|
3
main.go
3
main.go
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user