Documentation ¶ Overview ¶ Package editor provides $EDITOR integration for composing content. Index ¶ func Open(initialContent string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(initialContent string) (string, error) Open launches $EDITOR with initialContent and returns the edited text. Falls back to vi if $EDITOR is not set. Supports editors with arguments (e.g. EDITOR="code --wait"). Returns an error if the editor exits non-zero or the result is empty. Types ¶ This section is empty. Source Files ¶ View all Source files editor.go Click to show internal directories. Click to hide internal directories.