launcheditor

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultEditor = "vim"

DefaultEditor definition

Variables

View Source
var GetEditor func() (string, error)

GetEditor sets callback to get editor program

Functions

func LaunchEditor

func LaunchEditor(editor string) (content []byte, err error)

LaunchEditor launch the specified editor with a random filename

func LaunchEditorWithFilename

func LaunchEditorWithFilename(editor, filename string) (content []byte, err error)

LaunchEditorWithFilename launch the specified editor with a filename

Types

This section is empty.

Jump to

Keyboard shortcuts

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