github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/bft/mempool/config/utils.go (about)

     1  package config
     2  
     3  import "path/filepath"
     4  
     5  // helper function to make config creation independent of root dir
     6  func join(root, path string) string {
     7  	if filepath.IsAbs(path) {
     8  		return path
     9  	}
    10  	return filepath.Join(root, path)
    11  }