Playground
gnomod.toml
module = "gno.land/r/g1uqqqz9576j4hyttvq3890p9a6vqa32ut49gfn5/tally" gno = "0.9" [addpkg] creator = "g1uqqqz9576j4hyttvq3890p9a6vqa32ut49gfn5" height = 49842 max_deposit = "10000000ugnot"
tally.gno
package tally
import "strconv"
var count int
// Bump increments the tally by one and returns the new count.
func Bump(cur realm) int {
count++
return count
}
// Count returns the current tally.
func Count() int {
return count
}
func Render(path string) string {
return "# Tally board\n\nCurrent count: " + strconv.Itoa(count) + "\n"
}