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

editrun

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package editrun is how bide edit hands the editor (package flowedit) the run it compares the file with, without flowedit exporting a name for it. The editor's Option type cannot be built outside flowedit, so flowedit registers a constructor here when it is linked, and the command calls it: the run lives in that one editor's options, and nothing global holds a store or a run ID.

Index

Constants

This section is empty.

Variables

View Source
var NewOption func(Run) any

NewOption returns the flowedit.Option that gives an editor run, as an any: this package cannot name the type. flowedit sets it in its init, so it is non-nil in any binary that links flowedit.

Functions

This section is empty.

Types

type Run

type Run struct {
	ID     string
	Source runview.Source
}

Run is the run to compare a file with: its ID and the read-only source its journal is read from. ID may be empty: the store is then there for the list of its unfinished runs a change would refuse, and no run is compared. The command opens the source (runview.StoreFlags.Open) and closes it after the editor stops.

Jump to

Keyboard shortcuts

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