WithSourceDateEpoch associates the context with the epoch.
(ctx context.Context, tm *time.Time)
| 27 | |
| 28 | // WithSourceDateEpoch associates the context with the epoch. |
| 29 | func WithSourceDateEpoch(ctx context.Context, tm *time.Time) context.Context { |
| 30 | return context.WithValue(ctx, epochKey{}, tm) |
| 31 | } |
| 32 | |
| 33 | // FromContext returns the epoch associated with the context. |
| 34 | // FromContext does not fall back to read the SOURCE_DATE_EPOCH env var. |
no outgoing calls
no test coverage detected
searching dependent graphs…