Example:
|
logrus.Warnf("Failed to initialize %s: %v", |
- How are we sure that e.Value is not nil?
- How are we sure that e.Value can be case to ClusterManager?
Both of these should be checked, ie e.Value == nil -> error, clusterManager, ok := e.Value.(ClusterManager)