Descriptiongo.net/context: remove the Key type; replace it with interface{}. This
makes the Context interface dependent only on standard packages, which
means types in other packages can implement this interface without
depending on go.net/context.
Remove the NewKey function and add examples showing how to use
unexported types to avoid key collisions. This is the same model used
by http://www.gorillatoolkit.org/pkg/context, except we associate values
with a specific Context instead of storing them in a package-level map.
Patch Set 1 #
Total comments: 5
Patch Set 2 : diff -r 28ff664507e4 https://code.google.com/p/go.net #
Total comments: 6
Patch Set 3 : diff -r 28ff664507e4 https://code.google.com/p/go.net #Patch Set 4 : diff -r 28ff664507e4 https://code.google.com/p/go.net #
MessagesTotal messages: 8
|