Playground
gnomod.toml
module = "gno.land/r/g1gkeydy90k4epq70sayc8s8ql5g767vrf342pl2/tally" gno = "0.9" [addpkg] creator = "g1gkeydy90k4epq70sayc8s8ql5g767vrf342pl2" height = 65535 max_deposit = "10000000ugnot"
tally.gno
package tally
import "strconv"
var count int
// Bump adds one to the tally and returns the new count. Anyone may call it.
func Bump(cur realm) int {
count++
return count
}
// Render shows the current count.
func Render(path string) string {
return "# Tally board\n\nCount: " + strconv.Itoa(count) + "\n"
}