HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
(flag int)
| 702 | // HasFeature checks whether the environment enables the given feature |
| 703 | // flag, as enumerated in options.go. |
| 704 | func (e *Env) HasFeature(flag int) bool { |
| 705 | enabled, has := e.features[flag] |
| 706 | return has && enabled |
| 707 | } |
| 708 | |
| 709 | // HasLibrary returns whether a specific SingletonLibrary has been configured in the environment. |
| 710 | func (e *Env) HasLibrary(libName string) bool { |
no outgoing calls
no test coverage detected