mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
helpers: Add doc to Language.SetParam
This commit is contained in:
parent
4352156a27
commit
2ac9817eae
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue