upper

将以下英文翻译为中文:

upper

https://gohugo.io/functions/upper/

Converts all characters in a string to uppercase

语法

upper INPUT
strings.ToUpper INPUT

Note that upper can be applied in your templates in more than one way:

1
2
{{ upper "BatMan" }} → "BATMAN"
{{ "BatMan" | upper }} → "BATMAN"