package
0.0.0-20181025162720-c8a214aafdbb
Repository: https://github.com/turbinelabs/nonstdlib.git
Documentation: pkg.go.dev
# Functions
EditPath opens a specified path in the configured editor.
EditText opens an editor with the initial contents populated from the provided string; the edited string is returned.
EditTextType takes a string that should be edited and opens an editor with that content preloaded; it returns the edited string.
Get returns the editor that will be used as determined by reading the EditorVar environment variable.
# Constants
EditorVar specifies the environment variable we use to discover the editor command.
# Variables
DefaultEditor is used if the user does not have EDITOR specified.
ErrNoEditor indicates that no EDITOR was set in the environment.