ctxutil

package
v0.0.0-...-6c91261 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Session     = "session"
	User        = "user"
	UserProduct = "user_product"
	Order       = "order"
)

Variables

View Source
var (
	ErrNotFound = errors.Errorf("Контекст не содержит ключ")
)

Functions

func Get

func Get[T any](ctx context.Context, key string) (T, error)

func Set

func Set(ctx context.Context, key string, value interface{}) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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