Go 的 fmt 套件的文件描述了格式字串的結構和內容。
errorf 函式會評估格式字串,然後將結果列印到 ERROR 日誌中並使建構失敗。
errorf
{{ errorf "The %q shortcode requires a src argument. See %s" .Name .Position }}
使用 erroridf 函式可以選擇性抑制特定錯誤。
erroridf