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

     1  // PKGPATH: gno.land/r/boards_test
     2  package boards_test
     3  
     4  // SEND: 200000000ugnot
     5  
     6  import (
     7  	"strconv"
     8  
     9  	"gno.land/r/demo/boards"
    10  	"gno.land/r/demo/users"
    11  )
    12  
    13  var dstBoard boards.BoardID
    14  
    15  func init() {
    16  	users.Register("", "gnouser", "my profile")
    17  
    18  	dstBoard = boards.CreateBoard("dst_board")
    19  
    20  	boards.CreateRepost(0, 0, "First Post in (title)", "Body of the first post. (body)", dstBoard)
    21  }
    22  
    23  func main() {
    24  }
    25  
    26  // Error:
    27  // src board not exist