HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
(flag int)
| 637 | // HasFeature checks whether the environment enables the given feature |
| 638 | // flag, as enumerated in options.go. |
| 639 | func (e *Env) HasFeature(flag int) bool { |
| 640 | enabled, has := e.features[flag] |
| 641 | return has && enabled |
| 642 | } |
| 643 | |
| 644 | // HasLibrary returns whether a specific SingletonLibrary has been configured in the environment. |
| 645 | func (e *Env) HasLibrary(libName string) bool { |
no outgoing calls
no test coverage detected