Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxinehazel/goin
go package to get user input from an editor
https://github.com/maxinehazel/goin
editors go golang input vim
Last synced: about 2 months ago
JSON representation
go package to get user input from an editor
- Host: GitHub
- URL: https://github.com/maxinehazel/goin
- Owner: maxinehazel
- License: mit
- Created: 2019-05-06T22:01:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T22:19:27.000Z (almost 4 years ago)
- Last Synced: 2024-11-15T05:11:56.488Z (3 months ago)
- Topics: editors, go, golang, input, vim
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goin
Small go package for reading user input from an editor. Useful for building
CLIs and the like.Currently supports vim but I am going to expand it to use a generic text editor
eventually.## Installation
```shell
$ go get github.com/maxinekrebs/goin
```## Usage
```go
package mainimport (
"fmt""github.com/maxinekrebs/goin"
)func main() {
fileName := "/tmp/example.txt"
input, err := goin.ReadFromFile(fileName)
if err != nil {
panic(err)
}
fmt.Println(input)
}```