Documentation ¶
Overview ¶
Package parameters 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 Params ¶
type Params 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 }
Params defines the contract to an in-memory storage for generic parameters.
Click to show internal directories.
Click to hide internal directories.