Getting Started
To get started, import github.com/suborbital/grav/grav and create a Grav instance:
1
package main
2
3
import (
4
"fmt"
5
6
"github.com/suborbital/grav/grav"
7
)
8
9
func gettingStarted() {
10
g := grav.New()
11
12
fmt.Println(g.NodeUUID)
13
}
Copied!
Every Grav instance gets a UUID so that it can can identify itself to other instances when meshing is in use. grav.New can take a set of options, but for an in-process Grav instance, no options are needed.
Last modified 1yr ago
Copy link