Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

hello.gno

0.19 Kb · 14 lines
 1package hello
 2
 3import "strconv"
 4
 5var count int
 6
 7func Incr(cur realm) int {
 8	count++
 9	return count
10}
11
12func Render(path string) string {
13	return "# hello\n\ncount: " + strconv.Itoa(count) + "\n"
14}