Documentation ¶ Overview ¶ Package editor provides utilities for launching the user's preferred text editor. Index ¶ func Open(path string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(path string) error Open launches the user's preferred editor for the given path. Uses $EDITOR environment variable, falling back to $VISUAL, then nano, then vi. It safely splits the editor command (e.g. "code -w") and validates the executable. Types ¶ This section is empty. Source Files ¶ View all Source files editor.go Click to show internal directories. Click to hide internal directories.