Change 'interface{}' to 'any' (#4308)

This commit is contained in:
Gabriel Marin
2025-03-11 07:24:54 +02:00
committed by GitHub
parent aefb9a5bc4
commit 6c104d771e
3 changed files with 4 additions and 4 deletions

View File

@@ -565,7 +565,7 @@ func (item *Item) String() string {
}
// Helper function to parse, execute and convert "text/template" to string. Panics on error.
func templateToString(format string, data interface{}) string {
func templateToString(format string, data any) string {
bb := &bytes.Buffer{}
err := template.Must(template.New("").Parse(format)).Execute(bb, data)