Documentation ¶
Overview ¶
Package params implements a simple in-memory key/value store, used internally by Mocha.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P ¶
type P interface { // Get returns the parameter by its key. Get(key string) (any, bool) // GetAll returns all stored parameters. GetAll() map[string]any // Set sets a parameter. Set(key string, dep any) // Remove removes a parameter by its key. Remove(key string) // Has checks if a parameter with the given key exists. Has(key string) bool }
P defines a contract for a generic parameters repository.
Click to show internal directories.
Click to hide internal directories.