helpers: Add doc to Language.SetParam - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2ac9817eae7ddbb84c9d17c998d3ed004acc4b95
(DIR) parent 4352156a2730eddda6b05b66b73d910e4ac9abff
(HTM) Author: bogem <albertnigma@gmail.com>
Date: Thu, 24 Nov 2016 20:30:52 +0100
helpers: Add doc to Language.SetParam
Diffstat:
M helpers/language.go | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/helpers/language.go b/helpers/language.go
@@ -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
}