Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
dgo
✓ github.com/dgraph-io/dgo/v2
Connect to a Dgraph server using dgo.
package main
import (
"fmt"
"github.com/dgraph-io/dgo/v2"
"github.com/dgraph-io/dgo/v2/protos/api"
)
func main() {
conn, err := dgo.Dial("localhost:9080")
if err != nil {
panic(err)
}
defer conn.Close()
fmt.Println("Connected to Dgraph")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.