middleware/context.go

13 lines
239 B
Go
Raw Normal View History

2020-11-07 11:59:33 +00:00
package middleware
// CtxKey is a key to use with context.WithValue
type CtxKey struct {
Pkg string
Name string
}
// String returns string representation
func (s *CtxKey) String() string {
return s.Pkg + " context value " + s.Name
}