Trying that godoc format
This commit is contained in:
parent
fc18d74e1f
commit
78d73a7920
2
food.go
2
food.go
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user