peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.05k stars 132 forks source link

Simple example #6

Closed rif closed 10 years ago

rif commented 10 years ago

Please create a simple getting started example.

Thank you

peterh commented 10 years ago

Please format the following appropriately, add boilerplate, add error handling, put it where you were expecting the example (README.md or godoc?) and open a pull request. Thanks.

line := liner.NewLiner(); defer line.Close(); name, _ := line.Prompt("What is your name? ")

peterh commented 10 years ago

Example pushed. Thanks to rif for turning it into a pull request.