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

render.gno

0.49 Kb · 16 lines
 1package users
 2
 3import "gno.land/p/nt/ufmt/v0"
 4
 5func Render(_ string) string {
 6	out := "# r/sys/users\n\n"
 7
 8	out += "`r/sys/users` is a system realm for managing user registrations.\n\n"
 9	out += "User registration is managed through whitelisted controller realms.\n\n"
10	out += "---\n\n"
11
12	out += "## Stats\n\n"
13	out += ufmt.Sprintf("Total unique addresses registered: **%d**\n\n", addressStore.Size())
14	out += ufmt.Sprintf("Total unique names registered: **%d**\n\n", nameStore.Size())
15	return out
16}