Source File
reset.go
Belonging Package
github.com/teivah/onecontext
package onecontextimport ()// ResetValuesContext holds the logic reset the values of a context.type ResetValuesContext struct {ctx context.Context}// ResetValues reset the values of a context.func ( context.Context) *ResetValuesContext {return &ResetValuesContext{ctx: ,}}// Deadline returns the original context deadline.func ( *ResetValuesContext) () (time.Time, bool) {return .ctx.Deadline()}// Done returns the original done channel.func ( *ResetValuesContext) () <-chan struct{} {return .ctx.Done()}// Err returns the original context error.func ( *ResetValuesContext) () error {return .ctx.Err()}// Value returns nil regardless of the key.func ( *ResetValuesContext) ( interface{}) interface{} {return nil}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |