From a12b62c24c7e3d7dac8f77ec5e398b880b7d770a Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 8 Jul 2014 08:50:12 -0500 Subject: [PATCH] Add commented imports to the example. --- example_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example_test.go b/example_test.go index eda1c0d1..6c8e677f 100644 --- a/example_test.go +++ b/example_test.go @@ -15,6 +15,14 @@ import ( // This example demonstrates creating a new database and inserting the genesis // block into it. func ExampleCreateDB() { + // Notice in these example imports that the memdb driver is loaded. + // Ordinarily this would be whatever driver(s) your application + // requires. + // import ( + // "github.com/conformal/btcdb" + // _ "github.com/conformal/btcdb/memdb" + // ) + // Create a database and schedule it to be closed on exit. This example // uses a memory-only database to avoid needing to write anything to // the disk. Typically, you would specify a persistent database driver