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

     1  package boards
     2  
     3  import (
     4  	"regexp"
     5  
     6  	"gno.land/p/demo/avl"
     7  )
     8  
     9  //----------------------------------------
    10  // Realm (package) state
    11  
    12  var (
    13  	gBoards         avl.Tree    // id -> *Board
    14  	gBoardsCtr      int         // increments Board.id
    15  	gBoardsByName   avl.Tree    // name -> *Board
    16  	gDefaultAnonFee = 100000000 // minimum fee required if anonymous
    17  )
    18  
    19  //----------------------------------------
    20  // Constants
    21  
    22  var reName = regexp.MustCompile(`^[a-z]+[_a-z0-9]{2,29}$`)