Trying that godoc format

This commit is contained in:
Sacha Ligthert 2023-11-05 23:51:39 +01:00
parent fc18d74e1f
commit 78d73a7920

View File

@ -4,6 +4,8 @@ import (
"math/rand" "math/rand"
) )
// getFoodItem returns an emoji from a string used to represent food
// Takes no arguments, but returns an emoji/rune from a predefined string
func getFoodItem() rune { func getFoodItem() rune {
var foods string = "🐵🐱🐷🐁🐇🐿🦇🐓🐣🐸🦎🍎🍏" var foods string = "🐵🐱🐷🐁🐇🐿🦇🐓🐣🐸🦎🍎🍏"
foodsRune := []rune(foods) foodsRune := []rune(foods)