MCPcopy Create free account
hub / github.com/VirusTotal/vt-cli / Push

Method Push

utils/pqueue.go:33–35  ·  view source on GitHub ↗

Push and Pop use pointer receivers because they modify the slice's length, not just its contents. Push add a value to the tail of the priority queue

(x interface{})

Source from the content-addressed store, hash-verified

31
32// Push add a value to the tail of the priority queue
33func (pq *PQueue) Push(x interface{}) {
34 *pq = append(*pq, x.(PQueueNode))
35}
36
37// Pop removes a value from the head of the priority queue
38func (pq *PQueue) Pop() interface{} {

Callers 2

TestPQueueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPQueueFunction · 0.64