HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
(flag int)
| 622 | // HasFeature checks whether the environment enables the given feature |
| 623 | // flag, as enumerated in options.go. |
| 624 | func (e *Env) HasFeature(flag int) bool { |
| 625 | enabled, has := e.features[flag] |
| 626 | return has && enabled |
| 627 | } |
| 628 | |
| 629 | // HasLibrary returns whether a specific SingletonLibrary has been configured in the environment. |
| 630 | func (e *Env) HasLibrary(libName string) bool { |
no outgoing calls
no test coverage detected