package
Version:
v1.32.0
Opens a new window with list of versions in this module.
Published: May 14, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Maps
- NewStateMap: Creates a new map for managing state flags.
- SetState: Sets a specific state to true or false.
- IsState: Checks the current value of a state.
- ToggleState: Toggles the value of a state.
- HasState: Checks if a state exists in the map.
- NewMetadata: Creates a new metadata map for key-value storage.
- Update: Updates or adds a key-value pair to the metadata map.
- Value: Retrieves the value of a key from the metadata map.
- Has: Checks if a key exists in the metadata map.
Examples:
For examples of each function, please checkout EXAMPLES.md
Documentation
¶
StateMap hold key as string and value in bool
NewStateMap create new state.
HasState check if particular state is present in the StateMap
IsState return the value of the state provided from StateMap
SetState sets a new state with provided value in the StateMap
ToggleState toggles the value of the state with the provided key in the StateMap.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.