revert
This commit is contained in:
parent
7262c221d4
commit
74312f2260
1 changed files with 0 additions and 12 deletions
|
|
@ -181,18 +181,6 @@ func IterMap[T any](m map[string]T, mapper func(key string, value T) *Element) *
|
||||||
}
|
}
|
||||||
|
|
||||||
func List[T any](items []T, mapper func(item T, index int) *Element) *Element {
|
func List[T any](items []T, mapper func(item T, index int) *Element) *Element {
|
||||||
|
|
||||||
values := map[string]string{
|
|
||||||
"key": "value",
|
|
||||||
}
|
|
||||||
|
|
||||||
IterMap(values, func(key string, value string) *Element {
|
|
||||||
return Div(
|
|
||||||
Text(key),
|
|
||||||
Text(value),
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
node := &Element{
|
node := &Element{
|
||||||
tag: "",
|
tag: "",
|
||||||
children: make([]Ren, len(items)),
|
children: make([]Ren, len(items)),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue