MCPcopy Create free account
hub / github.com/arshamalh/dockeroller / Push

Method Push

entities/queue.go:28–38  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

26}
27
28func (q *Queue) Push(value string) *Queue {
29 new_node := newNode(value, nil)
30 if q.Length == 0 {
31 q.head = new_node
32 } else {
33 q.tail.Next = new_node
34 }
35 q.tail = new_node
36 q.Length++
37 return q
38}
39
40// Removes a Node from the queue and returns it,
41// Returns an error if there is no available node

Callers 2

ContainerLogsMethod · 0.95
TestNewQueueFunction · 0.95

Calls 1

newNodeFunction · 0.85

Tested by 1

TestNewQueueFunction · 0.76