dgo: github.com/dgraph-io/dgo/x Index | Files

package x

import "github.com/dgraph-io/dgo/x"


Package Files


func AssertTrue Uses

func AssertTrue(b bool)

AssertTrue asserts that b is true. Otherwise, it would log fatal.

func AssertTruef Uses

func AssertTruef(b bool, format string, args ...interface{})

AssertTruef is AssertTrue with extra info.

func Check Uses

func Check(err error)

Check logs fatal if err != nil.

func Check2 Uses

func Check2(_ interface{}, err error)

Check2 acts as convenience wrapper around Check, using the 2nd argument as error.

func Checkf Uses

func Checkf(err error, format string, args ...interface{})

Checkf is Check with extra info.

Package x imports 2 packages (graph) and is imported by 2 packages. Updated 2019-02-27. Refresh now. Tools for package owners.