package
Version:
v0.5.8
Opens a new window with list of versions in this module.
Published: Apr 22, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Pop removes the next item from the queue and returns it.
PopErr removes the next item from the queue and returns only the error
from it.
func PopRetainLast[T any](t testingT, queue *[]Item[T]) (T, error)
PopRetainLast removes the next item from the queue and returns it.
The last item is not removed and therefore returned on every subsequent call.
Pop removes the first item from the error queue and returns it.
PopOrNil removes the next item from the queue and returns it.
If the queue is empty, nil is returned.
type Item[T any] struct {
Value T
Err error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.