Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var Canceled = errors.New("context canceled") + var DeadlineExceeded = errors.New("context deadline exceeded") + func WithCancel(parent Context) (ctx Context, cancel CancelFunc) + func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) + func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) + type CancelFunc func() + type Context interface + Deadline func() (deadline time.Time, ok bool) + Done func() <-chan struct{} + Err func() error + Value func(key interface{}) interface{} + func Background() Context + func TODO() Context + func WithValue(parent Context, key interface{}, val interface{}) Context