utils

package
v0.0.0-...-44fbbaf Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionsUsage = "[OPTIONS]"
)

Variables

View Source
var (
	// Quit enables us to get coverage even when calling `os.Exit`
	Quit = os.Exit
)

Functions

func Die

func Die(format string, args ...interface{})

func Eprintf

func Eprintf(format string, args ...interface{})

func MakePath

func MakePath(base, key, filename string) string

func MakeUsage

func MakeUsage(flags *flag.FlagSet, cmd, banner, top, bottom string) func()

Types

type DummyFS

type DummyFS struct{}

func (*DummyFS) Open

func (*DummyFS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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