Help us shape the future of Go! Take the 2026 Go Developer Survey

editor

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package editor provides $EDITOR integration for composing content.

Index

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.

Jump to

Keyboard shortcuts

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