(parent context.Context, dependency bool)
| 98 | } |
| 99 | |
| 100 | func WithDependency(parent context.Context, dependency bool) context.Context { |
| 101 | return WithValue(parent, dependencyKey, dependency) |
| 102 | } |
| 103 | |
| 104 | func IsDependencyFrom(ctx context.Context) (bool, bool) { |
| 105 | isDependency, ok := ctx.Value(dependencyKey).(bool) |
no test coverage detected