sorter

package
v5.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(sections []Section) error

Sort sections based on rules:

  • all dependencies must exist
  • there must be no circular dependencies
  • sort by Name
  • if there is a dependency, section is moved after the one it depends on

Types

type Section

type Section struct {
	Name string
	From string
}

Jump to

Keyboard shortcuts

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