Skip to content

Commit 903e9b3

Browse files
Merge pull request #6453 from thaJeztah/rm_deprecated_template
templates: remove deprecated NewParse function
2 parents a44144e + 8452065 commit 903e9b3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

templates/templates.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ func New(tag string) *template.Template {
6969
return template.New(tag).Funcs(basicFunctions)
7070
}
7171

72-
// NewParse creates a new tagged template with the basic functions
73-
// and parses the given format.
74-
//
75-
// Deprecated: this function is unused and will be removed in the next release. Use [New] if you need to set a tag, or [Parse] instead.
76-
func NewParse(tag, format string) (*template.Template, error) {
77-
return template.New(tag).Funcs(basicFunctions).Parse(format)
78-
}
79-
8072
// padWithSpace adds whitespace to the input if the input is non-empty
8173
func padWithSpace(source string, prefix, suffix int) string {
8274
if source == "" {

0 commit comments

Comments
 (0)