diff options
author | Alan Pearce | 2025-03-19 12:20:24 +0100 |
---|---|---|
committer | Alan Pearce | 2025-03-19 12:20:24 +0100 |
commit | 3a9a1fd26540ddd0299771a729740cdd88239dde (patch) | |
tree | 6a65ad391fa2ff3d52132643502739e9645f56a7 /html | |
parent | 5eae1eef0f0a090ae569a23c0c52db356a109cfc (diff) | |
download | gomponents-3a9a1fd26540ddd0299771a729740cdd88239dde.tar.lz gomponents-3a9a1fd26540ddd0299771a729740cdd88239dde.tar.zst gomponents-3a9a1fd26540ddd0299771a729740cdd88239dde.zip |
Rename and document fork v1.2.0
Diffstat (limited to 'html')
-rw-r--r-- | html/attributes.go | 4 | ||||
-rw-r--r-- | html/attributes_test.go | 12 | ||||
-rw-r--r-- | html/elements.go | 2 | ||||
-rw-r--r-- | html/elements_test.go | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/html/attributes.go b/html/attributes.go index e9a0b6d..1a62e8a 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -1,7 +1,7 @@ package html import ( - g "maragu.dev/gomponents" + g "go.alanpearce.eu/gomponents" ) func Async() g.Node { @@ -138,7 +138,7 @@ func DataAttr(name, v string) g.Node { } func SlotAttr(v string) g.Node { - return g.Attr("slot", v) + return g.Attr("slot", v) } func For(v string) g.Node { diff --git a/html/attributes_test.go b/html/attributes_test.go index 6a01e03..1cdabd9 100644 --- a/html/attributes_test.go +++ b/html/attributes_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - g "maragu.dev/gomponents" - . "maragu.dev/gomponents/html" - "maragu.dev/gomponents/internal/assert" + g "go.alanpearce.eu/gomponents" + . "go.alanpearce.eu/gomponents/html" + "go.alanpearce.eu/gomponents/internal/assert" ) func TestBooleanAttributes(t *testing.T) { @@ -126,17 +126,17 @@ func TestVariadicAttributes(t *testing.T) { } for _, test := range tests { - t.Run(test.Name + "(no args)", func(t *testing.T) { + t.Run(test.Name+"(no args)", func(t *testing.T) { n := g.El("div", test.Func()) assert.Equal(t, fmt.Sprintf(`<div %v></div>`, test.Name), n) }) - t.Run(test.Name +"(one arg)", func(t *testing.T) { + t.Run(test.Name+"(one arg)", func(t *testing.T) { n := g.El("div", test.Func("hat")) assert.Equal(t, fmt.Sprintf(`<div %v="hat"></div>`, test.Name), n) }) - t.Run(test.Name + "(two args panics)", func(t *testing.T) { + t.Run(test.Name+"(two args panics)", func(t *testing.T) { defer func() { if r := recover(); r == nil { t.Errorf("expected a panic") diff --git a/html/elements.go b/html/elements.go index bf747a1..ad3f19f 100644 --- a/html/elements.go +++ b/html/elements.go @@ -8,7 +8,7 @@ package html import ( "io" - g "maragu.dev/gomponents" + g "go.alanpearce.eu/gomponents" ) // Doctype returns a special kind of [g.Node] that prefixes its sibling with the string "<!doctype html>". diff --git a/html/elements_test.go b/html/elements_test.go index 7670af5..de8413f 100644 --- a/html/elements_test.go +++ b/html/elements_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - g "maragu.dev/gomponents" - . "maragu.dev/gomponents/html" - "maragu.dev/gomponents/internal/assert" + g "go.alanpearce.eu/gomponents" + . "go.alanpearce.eu/gomponents/html" + "go.alanpearce.eu/gomponents/internal/assert" ) type erroringWriter struct{} |