From 733245997a6400c56dad4af1464824da3583ff35 Mon Sep 17 00:00:00 2001 From: Cheney Date: Fri, 16 Oct 2015 09:01:31 +0800 Subject: [PATCH] add doc for import package --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbd93ca..7875a05 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,22 @@ You can read the source code in [example/main.go](https://github.com/chzyer/read # Usage +* Import package + +``` +go get gopkg.in/readline.v1 +``` + +or + +``` +go get https://github.com/chzyer/readline +``` + * Simplest example ```go -import "github.com/chzyer/readline" +import "gopkg.in/readline.v1" rl, err := readline.New("> ") if err != nil { @@ -83,7 +95,7 @@ for { ```go import ( "log" - "github.com/chzyer/readline" + "gopkg.in/readline.v1" ) rl, err := readline.New("> ") @@ -113,7 +125,7 @@ for { ```go import ( "log" - "github.com/chzyer/readline" + "gopkg.in/readline.v1" ) var completer = readline.NewPrefixCompleter(