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

sorter

package
v6.3.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 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