Skip to content

essentialkaos/go-linenoise

PkgGoDev GitHub Actions CI Status Code Climate Maintainability Codebeat badge GitHub Actions CodeQL Status

ExampleCI StatusLicense


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.

Example

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)
}

CI Status

Branch Status
master CI
develop CI

License

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.