MCPcopy Create free account
hub / github.com/elliotchance/orderedmap / ExampleOrderedMap_Front

Function ExampleOrderedMap_Front

orderedmap_test.go:810–818  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

808}
809
810func ExampleOrderedMap_Front() {
811 m := orderedmap.NewOrderedMap()
812 m.Set(1, true)
813 m.Set(2, true)
814
815 for el := m.Front(); el != nil; el = el.Next() {
816 fmt.Println(el)
817 }
818}
819
820func nothing(v interface{}) {
821 v = false

Callers

nothing calls this directly

Calls 4

SetMethod · 0.95
FrontMethod · 0.95
NewOrderedMapFunction · 0.92
NextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…