chore: update module definition with new domain

This commit is contained in:
Guz
2025-10-13 14:54:57 -03:00
parent f7698f8764
commit 6ea200aa64
9 changed files with 417 additions and 5 deletions

24
xhtml/xhtml_test.go Normal file
View File

@@ -0,0 +1,24 @@
package xhtml_test
import (
"encoding/xml"
"log"
"testing"
)
func TestMain(t *testing.T) {
type Bold struct {
XMLName xml.Name `xml:"b"`
Content string `xml:",chardata"`
}
type test struct {
XMLName xml.Name `xml:"p"`
Content string `xml:",chardata"`
Bold []Bold `xml:"b"`
}
var v test
xml.Unmarshal([]byte(`<p>Hello, <b>world</b></p>`), &v)
log.Printf("%#v", v)
}