registry

package
v0.0.0-...-a456ec0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package registry is an experimental package to facilitate altering the otto runtime via import.

This interface can change at any time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(callback func(Entry))

Apply applies callback to all registry entries.

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

Entry represents a registry entry.

func Register

func Register(source func() string) *Entry

Register registers a new Entry for source.

func (*Entry) Disable

func (e *Entry) Disable()

Disable disables the entry.

func (*Entry) Enable

func (e *Entry) Enable()

Enable enables the entry.

func (Entry) Source

func (e Entry) Source() string

Source returns the source of the entry.

Jump to

Keyboard shortcuts

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