parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortFuncsWithOptions

func SortFuncsWithOptions(filename string, opts SortOptions) error

SortFuncsWithOptions reads a Go file, extracts top-level functions (and optional methods), groups exported/unexported, sorts them, and either writes back or prints a colorized diff.

Types

type SortOptions

type SortOptions struct {
	Reverse        bool
	DryRun         bool
	PrefixFilter   string
	IncludeMethods bool
}

Jump to

Keyboard shortcuts

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