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

Method Pop

utils/pqueue.go:38–44  ·  view source on GitHub ↗

Pop removes a value from the head of the priority queue

()

Source from the content-addressed store, hash-verified

36
37// Pop removes a value from the head of the priority queue
38func (pq *PQueue) Pop() interface{} {
39 old := *pq
40 n := len(old)
41 x := old[n-1]
42 *pq = old[0 : n-1]
43 return x
44}

Callers 2

TestPQueueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPQueueFunction · 0.64