Description

New will create and return a pair of debugging functions. You can customize where they output to by passing in an (optional) customization function:

import (
    Dbg "github.com/robertkrimen/dbg"
    "os"
)

# dbg to os.Stderr
dbg, dbgf := Dbg.New(func(dbgr *Dbgr) {
    dbgr.SetOutput(os.Stderr)
})

New is referenced in 2 repositories

github.com/robertkrimen/otto

...