MCPcopy Create free account
hub / github.com/antchfx/xpath / addAttribute

Method addAttribute

xpath_test.go:582–584  ·  view source on GitHub ↗
(k, v string)

Source from the content-addressed store, hash-verified

580}
581
582func (n *TNode) addAttribute(k, v string) {
583 n.Attr = append(n.Attr, Attribute{k, v})
584}
585
586func (n *TNode) getAttribute(key string) string {
587 for i := 0; i < len(n.Attr); i++ {

Callers 15

TestNamespacePrefixQueryFunction · 0.80
createElementAttrFunction · 0.80
createBookExampleFunction · 0.80
createEmployeeExampleFunction · 0.80
createHtmlExampleFunction · 0.80
createMyBookExampleFunction · 0.80
Test_descendant_issueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected