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 𝗘𝗞 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 |
Before contributing to this project please read our Contributing Guidelines.
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.