Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beevik/etree
/ ExampleDocument_reading
Function
ExampleDocument_reading
example_test.go:37–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
ExampleDocument_reading() {
38
doc := NewDocument()
39
if
err := doc.ReadFromFile(
"document.xml"
); err != nil {
40
panic(err)
41
}
42
}
43
44
func
ExamplePath() {
45
xml := `
Callers
nothing calls this directly
Calls
2
ReadFromFile
Method · 0.95
NewDocument
Function · 0.85
Tested by
no test coverage detected