Help us shape the future of Go! Take the 2026 Go Developer Survey

gxcontext

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Overview

Package gxcontext provides a key-value context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Values

type Values struct {
	// contains filtered or unexported fields
}

func (Values) Delete added in v0.3.0

func (c Values) Delete(key interface{})

func (Values) Get

func (v Values) Get(key interface{}) (interface{}, bool)

func (Values) Set

func (c Values) Set(key interface{}, value interface{})

type ValuesContext

type ValuesContext struct {
	context.Context
}

func NewValuesContext

func NewValuesContext(ctx context.Context) *ValuesContext

func (*ValuesContext) Delete added in v0.3.0

func (c *ValuesContext) Delete(key interface{})

func (*ValuesContext) Get

func (c *ValuesContext) Get(key interface{}) (interface{}, bool)

func (*ValuesContext) Set

func (c *ValuesContext) Set(key interface{}, value interface{})

Jump to

Keyboard shortcuts

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