Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
Merge merges two instances of `map[string]interface{}`. You can pass here as arguments any types, which are in fact `map[string]interface{}`. If both maps has some key - the value from the `f2` will be used.
DEPRECATED: Use logan/v3 instead
Types ¶
type Provider ¶
type Provider interface {
GetLoganFields() map[string]interface{}
}
Provider if passed as a field value (see `logan.Entity.WithField()` and `errors.F.Add()`), will be transformed into map with multiple key-values: each key provided in the return map of implementation of `GetLoganFields()` will be prefixed with the key of the whole entity, using `_` delimiter. See example in tests.
DEPRECATED: Use logan/v3 instead
Click to show internal directories.
Click to hide internal directories.