MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Push

Method Push

internal/mapper/mapper.path.go:72–76  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

70 pq[j].index = j
71}
72func (pq *priorityQueue) Push(x interface{}) {
73 n := x.(*nodeRecord)
74 n.index = len(*pq)
75 *pq = append(*pq, n)
76}
77func (pq *priorityQueue) Pop() interface{} {
78 old := *pq
79 n := old[len(old)-1]

Callers 1

findPathMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected