github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/r/demo/boards/z_0_d_filetest.gno (about)

     1  // PKGPATH: gno.land/r/boards_test
     2  package boards_test
     3  
     4  // SEND: 200000000ugnot
     5  
     6  import (
     7  	"gno.land/r/demo/boards"
     8  	"gno.land/r/demo/users"
     9  )
    10  
    11  var bid boards.BoardID
    12  
    13  func init() {
    14  	users.Register("", "gnouser", "my profile")
    15  	bid = boards.CreateBoard("test_board")
    16  	boards.CreateReply(bid, 0, 0, "Reply of the second post")
    17  }
    18  
    19  func main() {
    20  	println(boards.Render("test_board"))
    21  }
    22  
    23  // Error:
    24  // thread not exist