go-linenoise
is a Go package wrapping the linenoise C library. Since v3
we use @yhirose fork with UTF-8 support.
This is fork of go.linenoise package used in EK projects.
package main
// ////////////////////////////////////////////////////////////////////////// //
import (
"fmt"
linenoise "github.com/essentialkaos/go-linenoise/v3"
)
// ////////////////////////////////////////////////////////////////////////// //
func main() {
input, err := linenoise.Line("> ")
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Printf("Input: %s\n", input)
}
Branch | Status |
---|---|
master |
|
develop |
All code in this repository is licensed under a BSD license.
This project wraps linenoise which is written by Salvatore Sanfilippo and Pieter Noordhuis. The license for linenoise is included in the files linenoise.c
and linenoise.h
.
For all other files please read the LICENSE file.