Versions in this module Expand all Collapse all v0 v0.9.1 Apr 12, 2024 Changes in this version + var ErrContextValuesKeyNotFound = errors.New("key not found") + var ErrContextValuesNotFound = errors.New("context values not found") + var ErrTypeConversion = errors.New("invalid type conversion") + func CreateContextWithMap(ctx context.Context, valuesKey ContextValuesKey, cm ContextMap) context.Context + func CreateContextWithValues(ctx context.Context, valuesKey ContextValuesKey, values Values) context.Context + func GetContextValuesKey(ctx context.Context, contextValuesKey ContextValuesKey, key ContextKey) (interface{}, error) + func GetFieldsMap(ctx context.Context, contextValuesKey ContextValuesKey, fields ...interface{}) (map[string]interface{}, error) + func WrapError(message string, err error) error + type ContextKey string + type ContextMap map[ContextKey]interface + func PairFields(fields ...interface{}) ContextMap + type ContextValuesKey string + type Values struct + func GetContextValues(ctx context.Context, contextValuesKey ContextValuesKey) (*Values, error) + func NewValues(m ContextMap) Values + func (v Values) GetKey(key ContextKey) interface{} + func (v Values) GetMap() ContextMap