Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a minimalist context compatible with TinyGo. No maps, no channels, uses a fixed array of 16 key-value pairs.
func Background ¶ added in v0.0.2
func Background() *Context
Background returns an empty Context (equivalent to context.Background).
func WithValue ¶ added in v0.0.2
WithValue creates a new Context with the additional key-value pair. Returns errCapacityExceeded if the capacity of 16 pairs is exceeded.
func (*Context) Keys ¶ added in v0.0.10
Keys returns a slice containing all keys in the context. Later values with duplicate keys are not deduplicated - all keys are returned.
Click to show internal directories.
Click to hide internal directories.