Skip to content

Commit

Permalink
Merge pull request #94 from webstradev/main
Browse files Browse the repository at this point in the history
Make NewElement function private
  • Loading branch information
chasefleming authored Dec 16, 2023
2 parents 6e218b0 + ea70eb0 commit 72ae017
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion elem.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (e *Element) Render() string {
return builder.String()
}

func NewElement(tag string, attrs attrs.Props, children ...Node) *Element {
func newElement(tag string, attrs attrs.Props, children ...Node) *Element {
return &Element{
Tag: tag,
Attrs: attrs,
Expand Down
Loading

0 comments on commit 72ae017

Please sign in to comment.