Skip to content

maxinehazel/goin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

$ go get github.com/maxinekrebs/goin

Usage

package main

import (
	"fmt"

	"github.com/maxinekrebs/goin"
)

func main() {
	fileName := "/tmp/example.txt"
	input, err := goin.ReadFromFile(fileName)
	if err != nil {
		panic(err)
	}
	fmt.Println(input)
}

About

go package to get user input from an editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages