registry

package
v0.0.0-...-92c1f63 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 0 Imported by: 0

README

registry

-- import "github.com/extrame/otto/registry"

Package registry is an expirmental package to facillitate altering the otto runtime via import.

This interface can change at any time.

Usage

func Apply
func Apply(callback func(Entry))
type Entry
type Entry struct {
}
func Register
func Register(source func() string) *Entry
func (*Entry) Disable
func (self *Entry) Disable()
func (*Entry) Enable
func (self *Entry) Enable()
func (Entry) Source
func (self Entry) Source() string

-- godocdown http://github.com/extrame/godocdown

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