util

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeAll

func BeforeAll(fns ...cli.BeforeFunc) cli.BeforeFunc

BeforeAll runs multiple BeforeFuncs in order

func PointerTo

func PointerTo[T any](v T) *T

func Shuffle

func Shuffle[T any](s []T) []T

Shuffle shuffles the elements of a slice.

Types

type LevelFlag

type LevelFlag slog.Level

LevelFlag is a urfave/cli compatible flag for setting the log verbosity level.

func FromSlogLevel

func FromSlogLevel(l slog.Level) *LevelFlag

func (*LevelFlag) Set

func (f *LevelFlag) Set(value string) error

func (*LevelFlag) String

func (f *LevelFlag) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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