editor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package editor opens SQL text in the user's preferred external editor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edit

func Edit(initial string) (string, error)

Edit writes initial SQL into a temporary file, opens it in the selected editor, and returns the edited contents.

func Select

func Select() string

Select chooses the editor executable from environment variables, falling back to vi when no preference is configured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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