Add will append a URL parameter to the end of the route param
(key, value string)
| 150 | |
| 151 | // Add will append a URL parameter to the end of the route param |
| 152 | func (s *RouteParams) Add(key, value string) { |
| 153 | s.Keys = append(s.Keys, key) |
| 154 | s.Values = append(s.Values, value) |
| 155 | } |
| 156 | |
| 157 | // contextKey is a value for use with context.WithValue. It's used as |
| 158 | // a pointer so it fits in an interface{} without allocation. This technique |
no outgoing calls