helpers: Add doc to Language.SetParam
authorbogem <albertnigma@gmail.com>
Thu, 24 Nov 2016 19:30:52 +0000 (20:30 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 2 Jan 2017 16:01:58 +0000 (17:01 +0100)
helpers/language.go

index bb539277e7f924e710b826afb8937e2997acb429..000c846b1ae4c8a3d2cb7ab605472fd49d0fdc9d 100644 (file)
@@ -93,6 +93,8 @@ func (l *Language) Params() map[string]interface{} {
        return l.params
 }
 
+// SetParam sets param with the given key and value.
+// SetParam is case-insensitive.
 func (l *Language) SetParam(k string, v interface{}) {
        l.params[strings.ToLower(k)] = v
 }