* replace interface{} with any
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-07-05 09:46:50 +03:00
коммит произвёл GitHub
родитель b45ff0be5d
Коммит 717a4d04a9
258 изменённых файлов: 1286 добавлений и 1286 удалений

Просмотреть файл

@@ -27,7 +27,7 @@ type Container struct {
// Data contains the data used to populate the template variables, it has Props
// that can be of any type and HTML that only can be `template.HTML` types.
type Data struct {
Props map[string]interface{}
Props map[string]any
HTML map[string]template.HTML
}

Просмотреть файл

@@ -73,7 +73,7 @@ func TestRender(t *testing.T) {
mt := NewFromTemplate(tpl)
data := Data{
Props: map[string]interface{}{
Props: map[string]any{
"Bar": "bar",
},
}