(tag string, props map[string]any, children ...any)
| 156 | } |
| 157 | |
| 158 | func H(tag string, props map[string]any, children ...any) *VDomElem { |
| 159 | rtn := &VDomElem{Tag: tag, Props: props} |
| 160 | if len(children) > 0 { |
| 161 | for _, part := range children { |
| 162 | elems := partToElems(part) |
| 163 | rtn.Children = append(rtn.Children, elems...) |
| 164 | } |
| 165 | } |
| 166 | return rtn |
| 167 | } |
| 168 | |
| 169 | func E(tag string, parts ...any) *VDomElem { |
| 170 | rtn := &VDomElem{Tag: tag} |
nothing calls this directly
no test coverage detected