Er, I guess I phrased that badly. I saw the "github.com/dgraph-io/dgraph/dgraph/cmd/bulk" package, but I want to export more things from it so that I have more options than just calling the subcommand.
For example, I might have RDF data in memory and would like to use loader code to convert it to the Dgraph filesystem directly.