utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodeOK = 0
	ExitError  = 1
	ExitUsage  = 2
)

Variables

View Source
var DefaultExclusionList = []string{".*", "*.yaml", "*.yml", "*.md", "LICENSE", "LICENSE.txt", "README.md", "TODO.txt"}

Functions

func ErrPrintf

func ErrPrintf(format string, args ...any)

func ExitCode

func ExitCode(err error) int

Types

type ExitStatusError

type ExitStatusError struct {
	Code int
	Err  error
}

func (*ExitStatusError) Error

func (e *ExitStatusError) Error() string

func (*ExitStatusError) Unwrap

func (e *ExitStatusError) Unwrap() error

Jump to

Keyboard shortcuts

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