// Render default board view when there are no threads. package main import ( "testing" boards2 "gno.land/r/gnoland/boards2/v1" ) const ( owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" boardName = "TestBoard" ) func init() { testing.SetRealm(testing.NewUserRealm(owner)) boards2.CreateBoard(cross, boardName, false, false) } func main() { println(boards2.Render(boardName)) } // Output: // # [Boards](/r/gnoland/boards2/v1) › TestBoard // Created by [g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq](/u/g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq) on 2009-02-13 11:31pm UTC, #1 // ↳ [Create Thread](/r/gnoland/boards2/v1:TestBoard/create-thread) • [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:TestBoard/create-thread) in this board?