Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

Playground

gnomod.toml

module = "gno.land/r/g1fcpugq0m27acmwr2vvg2y3wwe9k9cddksxj9c0/hello"
gno = "0.9"

[addpkg]
  creator = "g1fcpugq0m27acmwr2vvg2y3wwe9k9cddksxj9c0"
  height = 1821895
  max_deposit = "100000000ugnot"

hello.gno

package hello

import "strconv"

var count int

func Increment(cur realm) int {
    count++
    return count
}

func Render(path string) string {
    return "# Hello World\n\n" +
        "Welcome to my first realm!\n\n" +
        "**Current count:** " + strconv.Itoa(count) + "\n\n" +
        "[Click here to increase the count](https://gno.land/r/g1fcpugq0m27acmwr2vvg2y3wwe9k9cddksxj9c0/hello)\n\n" +
        "(After you deploy, the button will work properly)"
}