mutable

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mutable provides v1.mutable context, that can store multiple values and be updated after creation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	context.Context
	Set(key, value interface{})
	Cancel()
}

Context interface, provides additional Set method to change values of the context after creation

func NewMutableContext

func NewMutableContext(parent context.Context) Context

NewMutableContext returns new Context instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL