Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 2.49 KB

README.md

File metadata and controls

60 lines (41 loc) · 2.49 KB

Code Climate Maintainability Codacy badge GitHub Actions CI Status 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.