tally.gno
0.31 Kb · 16 lines
1package tally
2
3import "strconv"
4
5var count int
6
7// Bump adds one to the tally and returns the new count. Anyone may call it.
8func Bump(cur realm) int {
9 count++
10 return count
11}
12
13// Render shows the current count.
14func Render(path string) string {
15 return "# Tally board\n\nCount: " + strconv.Itoa(count) + "\n"
16}