The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
type Decorator interface {
Decorate(v interface{}) interface{}
}
Decorator provides an interface for intercepting object creation within a
registry. The single method accepts an registry storage object, such as a
Layer, optionally replacing it upon with an alternative object or a
wrapper.
For example, if one wants to intercept the instantiation of a layer, an
implementation might be as follows:
func (md *DecoratorImplementation) Decorate(v interface{}) interface{} {
switch v := v.(type) {
case Layer:
return wrapLayer(v)
}
// Make sure to return the object or nil if the decorator doesn't require
// replacement.
return v
}
Such a decorator can be used to intercept calls to support implementing
complex features outside of the storage package.