Documentation ¶ Overview ¶ Package editor provides functionality for opening external editors. Index ¶ func Open(ctx context.Context, content string) (string, error) type OpenFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(ctx context.Context, content string) (string, error) Open opens the content in an external editor and returns the edited result. It uses the VISUAL or EDITOR environment variable to determine the editor. Falls back to notepad on Windows or vi on other platforms. Types ¶ type OpenFunc ¶ type OpenFunc func(ctx context.Context, content string) (string, error) OpenFunc is the type for editor functions. Source Files ¶ View all Source files editor.go Click to show internal directories. Click to hide internal directories.