Skip to content

Commit

Permalink
HTMLElement any
Browse files Browse the repository at this point in the history
  • Loading branch information
Gardego5 committed Sep 25, 2024
1 parent 678aa0a commit 414cc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fragment.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type HTMLElement interface {
Reader() io.Reader
}

type Fragment []HTMLElement
type Fragment []any

func (frag Fragment) element() {}
func (frag Fragment) String() string {
Expand All @@ -34,7 +34,7 @@ func (frag Fragment) WriteTo(w io.Writer) (int64, error) {
n := int64(0)

for _, child := range frag {
nn, err := child.WriteTo(w)
nn, err := render(w, child)
n += nn
if err != nil {
return 0, err
Expand Down

0 comments on commit 414cc61

Please sign in to comment.