ctxkey

package
v0.0.0-...-839d480 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

README

micro/ctxkey


ctxkey provides a user-defined context key (see go doc context.WithValue).

Documentation


package ctxkey // import "bitbucket.org/_mikey/micro/ctxkey"

Package ctxkey

TYPES

type Key string
    Key is a user-defined context key (context.WithValue(ctx, NewKey("my-key"),
    value))

func NewKey(k string) Key
    NewKey returns a new Key

Documentation

Overview

Package ctxkey

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

Key is a user-defined context key (context.WithValue(ctx, NewKey("my-key"), value))

func NewKey

func NewKey(k string) Key

NewKey returns a new Key

Jump to

Keyboard shortcuts

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