Search Apps Documentation Source Content File Folder Download Copy Actions Download

counter.gno

0.21 Kb · 16 lines
 1package counter
 2
 3import (
 4	"strconv"
 5)
 6
 7var count int
 8
 9func Increment(_ realm, delta int) int {
10	count += delta
11	return count
12}
13
14func Render(path string) string {
15	return "Current count: " + strconv.Itoa(count)
16}