We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a44144e + 8452065 commit 903e9b3Copy full SHA for 903e9b3
templates/templates.go
@@ -69,14 +69,6 @@ func New(tag string) *template.Template {
69
return template.New(tag).Funcs(basicFunctions)
70
}
71
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
-
80
// padWithSpace adds whitespace to the input if the input is non-empty
81
func padWithSpace(source string, prefix, suffix int) string {
82
if source == "" {
0 commit comments