Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrioritySort ¶
func NewPriority ¶
func NewPriority[T any]() *PrioritySort[T]
func (*PrioritySort[T]) Add ¶
func (m *PrioritySort[T]) Add(priority int, t T)
func (*PrioritySort[T]) Sort ¶
func (m *PrioritySort[T]) Sort() []T
Click to show internal directories.
Click to hide internal directories.