From 2622435bfae6013d98d249119f6038b0f714329d Mon Sep 17 00:00:00 2001 From: Cheney Date: Wed, 23 Sep 2015 13:35:48 +0800 Subject: [PATCH] improve readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 71564db..8beae04 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,10 @@ A pure go implementation for gnu readline. # Usage +You can read example code in [example/main.go](https://github.com/chzyer/readline/blob/master/example/main.go). + * Simplest example + ```go import "github.com/chzyer/readline" @@ -32,6 +35,7 @@ for { ``` * Example with durable history + ```go rl, err := readline.NewEx(&readline.Config{ Prompt: "> ", @@ -52,6 +56,7 @@ for { ``` * Example with auto refresh + ```go import ( "log"