mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
664 B
52 lines
664 B
10 years ago
|
# registry
|
||
|
--
|
||
|
import "github.com/robertkrimen/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
|
||
|
|
||
|
```go
|
||
|
func Apply(callback func(Entry))
|
||
|
```
|
||
|
|
||
|
#### type Entry
|
||
|
|
||
|
```go
|
||
|
type Entry struct {
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
#### func Register
|
||
|
|
||
|
```go
|
||
|
func Register(source func() string) *Entry
|
||
|
```
|
||
|
|
||
|
#### func (*Entry) Disable
|
||
|
|
||
|
```go
|
||
|
func (self *Entry) Disable()
|
||
|
```
|
||
|
|
||
|
#### func (*Entry) Enable
|
||
|
|
||
|
```go
|
||
|
func (self *Entry) Enable()
|
||
|
```
|
||
|
|
||
|
#### func (Entry) Source
|
||
|
|
||
|
```go
|
||
|
func (self Entry) Source() string
|
||
|
```
|
||
|
|
||
|
--
|
||
|
**godocdown** http://github.com/robertkrimen/godocdown
|