Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Editor ¶
Editor can prompt a user to manipulate text by opening it with an editor.
func (*Editor) Edit ¶
Edit writes contents to a temporary file and opens it with an editor . A pattern (e.g. '*.yaml') can be provided to control the extension of the temporary file that is created and then opened with the editor. This is useful as a hint for the editor so that it can choose a suitable syntax highlighting. Returns the byte slice with the edited result after the user closed the editor.
Click to show internal directories.
Click to hide internal directories.