hugo/docs/content/en/functions/fmt/Warnf.md
2023-10-20 09:43:56 +02:00

826 B

title linkTitle description categories keywords menu function relatedFunctions aliases
fmt.Warnf warnf Log a WARNING from a template.
functions
docs
parent
functions
aliases returnType signatures
warnf
string
fmt.Warnf FORMAT [INPUT]
fmt.Errorf
fmt.Erroridf
fmt.Warnf
/functions/warnf

The documentation for Go's fmt package describes the structure and content of the format string.

Like the printf function, the warnf function evaluates the format string. It then prints the result to the WARNING log. Hugo prints each unique message once to avoid flooding the log with duplicate warnings.

{{ warnf "Copyright notice missing from site configuration" }}