gs_util

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TripleSort

func TripleSort(sorting *list.List, fn GetBeforeItems) (*list.List, error)

TripleSort performs a three-way sort (processing, toSort, sorted) to resolve dependencies and return a sorted list. The input `sorting` is a list of all items to be sorted, and `fn` determines dependencies.

Types

type GetBeforeItems

type GetBeforeItems func(sorting *list.List, current any) *list.List

GetBeforeItems is a function type that returns a list of items that must appear before the given current item in the sorting order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL