Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utgwkk/ctxvalue
A set of wrapper functions for context.WithValue and context.Value with generics.
https://github.com/utgwkk/ctxvalue
context go golang
Last synced: 28 days ago
JSON representation
A set of wrapper functions for context.WithValue and context.Value with generics.
- Host: GitHub
- URL: https://github.com/utgwkk/ctxvalue
- Owner: utgwkk
- License: mit
- Created: 2023-06-04T06:09:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-04T07:26:29.000Z (over 1 year ago)
- Last Synced: 2024-12-16T18:09:54.925Z (29 days ago)
- Topics: context, go, golang
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ctxvalue
[![Go Reference](https://pkg.go.dev/badge/github.com/utgwkk/ctxvalue.svg)](https://pkg.go.dev/github.com/utgwkk/ctxvalue)
A set of wrapper functions for [context.WithValue](https://pkg.go.dev/context#WithValue) and [context.Value](https://pkg.go.dev/context#Context) with generics.
## Usage
See [value_test.go](./value_test.go).