package main import ( "std" "testing" boards2 "gno.land/r/gnoland/boards2/v1" ) const ( owner = std.Address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx name = "TestBoard" ) func main() { testing.SetRealm(std.NewUserRealm(owner)) boards2.CreateBoard(cross, name, false) // Unlisted board should not be rendered println(boards2.Render("")) // Unlisted board can be rendered by path println("\n==================") println(boards2.Render(name)) } // Output: // # Boards // [Create Board](/r/gnoland/boards2/v1$help&func=CreateBoard&listed=true&name=) • [List Admin Users](/r/gnoland/boards2/v1:admin-users) • [Help](/r/gnoland/boards2/v1:help) // // --- // ### Currently there are no boards // Be the first to [create a new board](/r/gnoland/boards2/v1$help&func=CreateBoard&listed=true&name=) ! // // ================== // # TestBoard // Board created by [g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq](/u/g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq) on 2009-02-13 11:31pm UTC, #1 // // [Create Thread](/r/gnoland/boards2/v1$help&func=CreateThread&boardID=1&body=&title=) • [Request Invite](/r/gnoland/boards2/v1$help&func=RequestInvite&boardID=1) • [Manage Board](?menu=manageBoard) // // --- // ### This board doesn't have any threads // Do you want to [start a new conversation](/r/gnoland/boards2/v1$help&func=CreateThread&boardID=1&body=&title=) in this board ?