features sets the given feature flags. See list of Feature constants above.
(flag int, enabled bool)
| 1153 | |
| 1154 | // features sets the given feature flags. See list of Feature constants above. |
| 1155 | func features(flag int, enabled bool) EnvOption { |
| 1156 | return func(e *Env) (*Env, error) { |
| 1157 | e.ensureMutableFeatures() |
| 1158 | e.features[flag] = enabled |
| 1159 | return e, nil |
| 1160 | } |
| 1161 | } |
| 1162 | |
| 1163 | func setLimit(id limitID, limit int) EnvOption { |
| 1164 | if limit < 0 { |
no test coverage detected