metadata

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToContext

func AppendToContext(ctx context.Context, md interface{}) context.Context

AppendToContext returns a new context with the given value written into original ctx as metadata.

func FromContext

func FromContext(ctx context.Context) (interface{}, bool)

FromContext returns the metadata from ctx if it exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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