Skip to content

Commit

Permalink
helpers: Add doc to Language.SetParam
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v authored and bep committed Jan 2, 2017
1 parent 4352156 commit 2ac9817
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2ac9817

Please sign in to comment.