Discover Packages
github.com/jexia/semaphore
pkg
specs
metadata
package
Version:
v0.0.0-...-3cc3ff2
Opens a new window with list of versions in this module.
Published: May 17, 2021
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.
Documentation
Documentation
¶
Meta represents a metadata store capable of holding values that
extend a given struct through a context Value like approach.
func WithValue(parent *Meta , key, value interface{}) *Meta
WithValue returns a copy of parent in which the value associated with key is val.
func (c *Meta ) Value(key interface{}) interface{}
Value compares the given key with the value key inside
the given meta object. If the keys match is the value
returned. If the keys do not match is the parent object called.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.