коммит произвёл
GitHub
родитель
b45ff0be5d
Коммит
717a4d04a9
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user