Skip to content
Myr

Remove unused func from send-msg example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

‘randomEmoji()’ is redundant

authored by Max Brauer · committed by Christian Rocha · parent d266bc1 · Browse files · 1 file+0 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−5 removed

  • other:+0 added−5 removed

1 file+0 added−5 removed

modified:examples/send-msg/main.go-5 removed
126 unmodified lines
127128 <-done129}130131func randomEmoji() string {132 emojis := []rune("🍦🧋🍡🤠👾😭🦊🐯🦆🥨🎏🍔🍒🍥🎮📦🦁🐶🐸🍕🥐🧲🚒🥇🏆🌽")133 return string(emojis[rand.Intn(len(emojis))])134}135131func randomFood() string {132 food := []string{"an apple", "a pear", "a gherkin", "a party gherkin",133 "a kohlrabi", "some spaghetti", "tacos", "a currywurst", "some curry",134 "a sandwich", "some peanut butter", "some cashews", "some ramen"}
2 unmodified lines