Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_set_realm_notice_03_filetest.gno

0.64 Kb · 27 lines
 1package main
 2
 3import (
 4	"testing"
 5
 6	boards2 "gno.land/r/gnoland/boards2/v1"
 7)
 8
 9const owner address = "g1rp7cmetn27eqlpjpc4vuusf8kaj746tysc0qgh"
10
11func main() {
12	testing.SetRealm(testing.NewUserRealm(owner))
13
14	boards2.SetRealmNotice(cross, "This is a test realm message")
15
16	println(boards2.Render(""))
17}
18
19// Output:
20// > [!INFO] Notice
21// > This is a test realm message
22// # Boards
23// [Create Board](/r/gnoland/boards2/v1:create-board) • [List Admin Users](/r/gnoland/boards2/v1:admin-users) • [Help](/r/gnoland/boards2/v1:help)
24//
25// ---
26// ### Currently there are no boards
27// Be the first to [create a new board](/r/gnoland/boards2/v1:create-board)!