Categorygithub.com/ibrt/golang-edit-prompt
module
1.0.1
Repository: https://github.com/ibrt/golang-edit-prompt.git
Documentation: pkg.go.dev

# README

golang-edit-prompt

Go Reference CI codecov

Run visudo-like text editing prompts from a Go CLI program.

Basic Example

package main

import (
    "github.com/ibrt/golang-edit-prompt/editz"
)

func main() {
    err := editz.Edit("hello.txt", func(contents []byte) error {
        // inspect the changed contents, return nil if OK, error otherwise
        return nil
    })
    if err != nil {
        panic(err)
    }
}

Developers

Contributions are welcome, please check in on proposed implementation before sending a PR. You can validate your changes using the ./test.sh script.

# Packages

No description provided by the author