printf

将以下英文翻译为中文:

printf

https://gohugo.io/functions/printf/

Formats a string using the standard fmt.Sprintf function.

语法

printf FORMAT INPUT

See the go doc for additional information.

1
2
{{ i18n ( printf "combined_%s" $var ) }}
{{ printf "formatted %.2f" 3.1416 }}

另请参阅