scope

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package scope names what a search looks through.

It is the one piece of vocabulary the three search surfaces share: the goto palette (which searches a scope), the Find seed picker (each seed names the scope it would search), and the global value search (which routes a seed's scope to a query). Keeping it here lets each of those live in its own package without one of them owning a type the others need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope uint8

Scope selects the corpus a search runs over.

const (
	All      Scope = iota // symbols + sections + a typed address
	Symbols               // symbols only
	Sections              // section names
	Strings               // printable strings (its own scope — the corpus is large)
	Libs                  // linked libraries
	Addr                  // a raw address (virtual, or physical when toggled)
	Count                 // number of scopes; not a scope itself
)

func Next

func Next(s Scope) Scope

Next cycles forward through the scopes, wrapping.

func Prev

func Prev(s Scope) Scope

Prev cycles backward through the scopes, wrapping.

func (Scope) String

func (s Scope) String() string

String is the scope's user-facing name.

Jump to

Keyboard shortcuts

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