Help us shape the future of Go! Take the 2026 Go Developer Survey

dependency

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dependency owns deterministic dependency traversal for explicit framework registries. Callers own identifier validation and input ordering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure[K comparable] struct {
	Kind Kind
	Key  K
}

func Order

func Order[K comparable](roots []K, dependencies func(K) ([]K, bool)) ([]K, *Failure[K])

Order visits roots and dependency lists in supplied order, emitting each node once after its prerequisites. It performs no registration or runtime work.

func (*Failure[K]) Error

func (f *Failure[K]) Error() string

type Kind

type Kind uint8
const (
	Missing Kind = iota + 1
	Cycle
)

Jump to

Keyboard shortcuts

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