Documentation ¶
Overview ¶
Copyright 2013 Julien Schmidt. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamsKey = paramsKey{}
ParamsKey is the request context key under which URL Params are stored.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string without a memory allocation.
func StringToBytes ¶
StringToBytes converts string to byte slice without a memory allocation.
Types ¶
type Params ¶
type Params []Param
Params is a Param-slice, as returned by the router. The slice is ordered, the first URL parameter is also the first slice value. It is therefore safe to read values by the index.
func ParamsFromContext ¶
ParamsFromContext pulls the URL parameters from a request context, or returns nil if none are present.
Click to show internal directories.
Click to hide internal directories.