Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor represents the external editor.
func NewEditor ¶
NewEditor instantiates a new editor with the desired command and temporary directory.
func (*Editor) Edit ¶
Edit edits the informed payload on a temporary file, using the external editor.
func (*Editor) GetCommand ¶
GetCommand shows the editor command.
type FakeEditor ¶
type FakeEditor struct {
// contains filtered or unexported fields
}
func NewFakeEditor ¶
func NewFakeEditor(payload []byte) *FakeEditor
func (*FakeEditor) GetCommand ¶
func (*FakeEditor) GetCommand() string
func (*FakeEditor) GetTmpDir ¶
func (*FakeEditor) GetTmpDir() string
Click to show internal directories.
Click to hide internal directories.