mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
helpers: Add doc to Language.SetParam
This commit is contained in:
1 parent
4352156a27
commit
2ac9817eae
1 file changed
+2
@@ -93,6 +93,8 @@ func (l *Language) Params() map[string]interface{} {
|
|||||||
return l.params
|
return l.params
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetParam sets param with the given key and value.
|
||||||
|
// SetParam is case-insensitive.
|
||||||
func (l *Language) SetParam(k string, v interface{}) {
|
func (l *Language) SetParam(k string, v interface{}) {
|
||||||
l.params[strings.ToLower(k)] = v
|
l.params[strings.ToLower(k)] = v
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user