knife

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

Get 从 context.Context 对象中获取 key 对应的 val。

func New

func New(ctx context.Context) context.Context

New 返回带有缓存空间的 context.Context 对象。

func Set

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

Set 将 key 及其 val 保存到 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