Playground
gnomod.toml
module = "gno.land/r/g1r6y6ydgcxvrq9ur9v82tr9c3azpwtved7ly3qu/tally" gno = "0.9" [addpkg] creator = "g1r6y6ydgcxvrq9ur9v82tr9c3azpwtved7ly3qu" height = 44050 max_deposit = "10000000ugnot"
tally.gno
// Package tally is a public tally board: anyone can bump the counter.
package tally
import "strconv"
var count int
// Bump increments the tally by one.
func Bump(cur realm) {
count++
}
// Count returns the current tally.
func Count() int {
return count
}
// Render shows the current tally.
func Render(path string) string {
return "# Tally board\n\nCurrent count: " + strconv.Itoa(count) + "\n"
}