From 195ea88a282de52802a6443d41b0be08a347fc95 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Tue, 26 May 2015 12:35:05 +0200 Subject: [PATCH] Cosmetic changes --- context.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/context.go b/context.go index 88e85fb4..ecacf945 100644 --- a/context.go +++ b/context.go @@ -203,9 +203,8 @@ func (c *Context) PostForm(key string) (va string) { } /** Shortcut for c.Params.ByName(key) */ -func (c *Context) Param(key string) (va string) { - va, _ = c.Params.Get(key) - return +func (c *Context) Param(key string) string { + return c.Params.ByName(key) } func (c *Context) DefaultPostForm(key, defaultValue string) string { @@ -434,7 +433,7 @@ func (c *Context) SetAccepted(formats ...string) { } /************************************/ -/******** CONTENT NEGOTIATION *******/ +/***** GOLANG.ORG/X/NET/CONTEXT *****/ /************************************/ func (c *Context) Deadline() (deadline time.Time, ok bool) {