Discover Packages
cogentcore.org/core
base
metadata
package
Version:
v0.3.7
Opens a new window with list of versions in this module.
Published: Dec 10, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 19
Opens a new window with list of known importers.
Documentation
Documentation
¶
Get gets metadata value of given type.
returns error if not present or item is a different type.
Data is metadata as a map of named any elements
with generic support for type-safe Get and nil-safe Set.
Copy does a shallow copy of metadata from source.
Any pointer-based values will still point to the same
underlying data as the source, but the two maps remain
distinct. It uses maps.Copy .
Set sets key to given value, ensuring that
the map is created if not previously.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.