MCPcopy Index your code
hub / github.com/dunglas/httpsfv / NewItem

Function NewItem

item.go:15–19  ·  view source on GitHub ↗

NewItem returns a new Item.

(v interface{})

Source from the content-addressed store, hash-verified

13
14// NewItem returns a new Item.
15func NewItem(v interface{}) Item {
16 assertBareItem(v)
17
18 return Item{v, NewParams()}
19}
20
21func (i Item) member() {
22}

Callers 11

TestMarshalDictionnaryFunction · 0.85
TestUnmarshalDictionaryFunction · 0.85
TestMarshalFunction · 0.85
TestMarshalErrorFunction · 0.85
TestMarshalListFunction · 0.85
TestMarshalItemFunction · 0.85
TestUnmarshalItemFunction · 0.85
ExampleMarshalFunction · 0.85
valToItemFunction · 0.85
TestInnerListFunction · 0.85

Calls 2

assertBareItemFunction · 0.85
NewParamsFunction · 0.85

Tested by 11

TestMarshalDictionnaryFunction · 0.68
TestUnmarshalDictionaryFunction · 0.68
TestMarshalFunction · 0.68
TestMarshalErrorFunction · 0.68
TestMarshalListFunction · 0.68
TestMarshalItemFunction · 0.68
TestUnmarshalItemFunction · 0.68
ExampleMarshalFunction · 0.68
valToItemFunction · 0.68
TestInnerListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…