mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
tpl: Sync go_templates for Go 1.18
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774 Updates #9677
This commit is contained in:
@@ -229,6 +229,6 @@ func (e *Error) Error() string {
|
||||
|
||||
// errorf creates an error given a format string f and args.
|
||||
// The template Name still needs to be supplied.
|
||||
func errorf(k ErrorCode, node parse.Node, line int, f string, args ...interface{}) *Error {
|
||||
func errorf(k ErrorCode, node parse.Node, line int, f string, args ...any) *Error {
|
||||
return &Error{k, node, "", line, fmt.Sprintf(f, args...)}
|
||||
}
|
||||
|
Reference in New Issue
Block a user