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

Function createNode

xpath_test.go:554–556  ·  view source on GitHub ↗
(data string, typ NodeType)

Source from the content-addressed store, hash-verified

552}
553
554func createNode(data string, typ NodeType) *TNode {
555 return &TNode{Data: data, Type: typ, Attr: make([]Attribute, 0)}
556}
557
558func (n *TNode) createChildNode(data string, typ NodeType) *TNode {
559 m := createNode(data, typ)

Callers 15

xpath_test.goFile · 0.85
TestNamespacePrefixQueryFunction · 0.85
TestNodeTypeFunction · 0.85
createChildNodeMethod · 0.85
appendNodeMethod · 0.85
createElementFunction · 0.85
createBookExampleFunction · 0.85
createEmployeeExampleFunction · 0.85
createHtmlExampleFunction · 0.85
createMyBookExampleFunction · 0.85
Test_func_string_emptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…