MCPcopy
hub / github.com/BishopFox/jsluice / NewObject

Function NewObject

objects.go:16–21  ·  view source on GitHub ↗

NewObject returns a jsluice Object for the given Node

(n *Node, source []byte)

Source from the content-addressed store, hash-verified

14
15// NewObject returns a jsluice Object for the given Node
16func NewObject(n *Node, source []byte) Object {
17 return Object{
18 node: n,
19 source: source,
20 }
21}
22
23// AsMap returns a Go map version of the object
24func (o Object) AsMap() map[string]string {

Callers 2

AsObjectMethod · 0.85
GetObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected