utils

package
v0.0.0-...-01d6657 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFilePerms

func AssertFilePerms(f *os.File, permMask os.FileMode) error

func Exists

func Exists(path string) (exists bool, isDir bool, err error)

func LogWithContext

func LogWithContext(level interface{}, format string, args ...interface{})

func SplitWork

func SplitWork(pages tuple.T2[int, int], batches int) ([]tuple.T2[int, int], error)

---- Unit test this, VERY IMPORTANT

func TrySendError

func TrySendError(__errChan__ chan<- error, __err__ error, doLog bool)

func WaitXSeconds

func WaitXSeconds(X int)

Types

type Debug

type Debug struct{}

type Fatal

type Fatal struct{}

type Info

type Info struct{}

type Pair

type Pair[T any, V any] struct {
	First  T
	Second V
}

func NewPair

func NewPair[T any, V any](first T, second V) Pair[T, V]

Jump to

Keyboard shortcuts

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