Remove unused func from send-msg example

‘randomEmoji()’ is redundant
This commit is contained in:
Max Brauer 2021-12-31 09:28:35 +01:00 committed by Christian Rocha
parent d266bc1616
commit 4ac566c1f7
1 changed files with 0 additions and 5 deletions

View File

@ -128,11 +128,6 @@ func main() {
<-done
}
func randomEmoji() string {
emojis := []rune("🍦🧋🍡🤠👾😭🦊🐯🦆🥨🎏🍔🍒🍥🎮📦🦁🐶🐸🍕🥐🧲🚒🥇🏆🌽")
return string(emojis[rand.Intn(len(emojis))])
}
func randomFood() string {
food := []string{"an apple", "a pear", "a gherkin", "a party gherkin",
"a kohlrabi", "some spaghetti", "tacos", "a currywurst", "some curry",