HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
(flag int)
| 595 | // HasFeature checks whether the environment enables the given feature |
| 596 | // flag, as enumerated in options.go. |
| 597 | func (e *Env) HasFeature(flag int) bool { |
| 598 | enabled, has := e.features[flag] |
| 599 | return has && enabled |
| 600 | } |
| 601 | |
| 602 | // HasLibrary returns whether a specific SingletonLibrary has been configured in the environment. |
| 603 | func (e *Env) HasLibrary(libName string) bool { |
no outgoing calls
no test coverage detected