common

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8SAPIVersion = "v1"
)

Variables

This section is empty.

Functions

func EntryExit added in v0.1.26

func EntryExit(method string) func()

EntryExit immediately prints an entry statement and returns a function that can be used with defer and that prints an exit statement with timing

func FromEither

func FromEither[A any](value E.Either[error, A]) (A, error)

EromEither converts from Either to a normal tuple

func PanicAfterTimeout added in v0.1.27

func PanicAfterTimeout(message string, delay time.Duration) context.CancelFunc

PanicAfterTimeout starts a timer and after a timeout panics and kills the process the timer can be cancelled via the cancel function, e.g. in a defer call

Types

This section is empty.

Jump to

Keyboard shortcuts

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