MCPcopy
hub / github.com/g3n/engine / SetUserData

Method SetUserData

core/node.go:233–236  ·  view source on GitHub ↗

SetUserData sets the generic user data associated to the node.

(data interface{})

Source from the content-addressed store, hash-verified

231
232// SetUserData sets the generic user data associated to the node.
233func (n *Node) SetUserData(data interface{}) {
234
235 n.userData = data
236}
237
238// UserData returns the generic user data associated to the node.
239func (n *Node) UserData() interface{} {

Callers 2

SetAttribsMethod · 0.80
recalcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected