editor

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(c *conflict.Conflict) (output []string, err error)

Open starts a text-editor with lines from `Content` It returns the manually edited lines from the text-editor when the user closes the editor

Types

type Content

type Content struct {
	// contains filtered or unexported fields
}

Content represents the lines read from a io.Reader `c` holds the actual lines and `reader` contains the io.Reader representation of the lines

func (Content) Read

func (c Content) Read(b []byte) (int, error)

func (Content) String

func (c Content) String() string

Jump to

Keyboard shortcuts

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