editor

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor struct {
	// In, Out, and Err represent the respective data streams that the editor
	// may act upon.
	In       io.Reader
	Out, Err io.Writer
}

func New

func New(in io.Reader, out, err io.Writer) Editor

func (Editor) Open

func (e Editor) Open(ctx context.Context, path string) error

func (Editor) OpenTempFile

func (e Editor) OpenTempFile(ctx context.Context, prefix, suffix string, r io.Reader) ([]byte, string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL