DevBits
Home
Atlas
Play
About
Sign up
Log in
All
Go
context.WithValue()
Examples using...
context.WithValue()
Recent
Examples
WithValue in Go
by GoDoc
Go
context.WithValue
fmt.Println
context
context.Background
context.Context
This example demonstrates how a value can be passed to the context and also how to retrieve it if it exists.