From 779f00d26c68162e760963fbf8264611b0fde992 Mon Sep 17 00:00:00 2001 From: Nathan Dao Date: Sun, 25 Oct 2015 11:06:37 +0200 Subject: [PATCH] update documentation for opening a new connection with default configuration --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 137beff..51cda5a 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,13 @@ If you don't use a configuration, LedisDB will use the default for you. ## Package Example - import "github.com/siddontang/ledisdb/ledis" + import ( + lediscfg "github.com/siddontang/ledisdb/config" + "github.com/siddontang/ledisdb/ledis" + ) + + # Use Ledis's default config + cfg := lediscfg.NewConfigDefault() l, _ := ledis.Open(cfg) db, _ := l.Select(0)