Skip to content Search Apps Documentation Source Content 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.

render.gno

0.56 Kb · 19 lines
 1package gnocial
 2
 3import "strconv"
 4
 5// Render is the short gnoweb page for this fund realm.
 6// The long client and Sheet live in the view realm. A realm has to declare
 7// Render, and the storage deposit of this package cannot hold both the curve
 8// and the full client.
 9func Render(path string) string {
10	line := "# Gnocial\n\nPhien ban " + ProtocolVersion
11	if state.successor != "" {
12		line += "\n\nKe tiep: " + state.successor
13	}
14	if state.paused {
15		line += "\n\nTam dung dang bat. Ban ve van mo."
16	}
17	line += "\n\nThanh vien: " + strconv.Itoa(MemberCount())
18	return line
19}