#Withvalue
1 articles
Get to know Package Context With Value in Golang
Introduction to the context.WithValue package
At the beginning of the context explanation, we know that the context will be created for the first time during initialization using context.Background()
or context.TODO()
, where the context does not have a value, aka it is still empty. We can add values from a context with a concept like a map, namely [key - value].