utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the global logger instance
	Logger *slog.Logger
)

Functions

func CalculateNextExecution

func CalculateNextExecution(schedule string, from time.Time) time.Time

func CheckInterface

func CheckInterface[T any](s interface{}) bool

func GetLogger

func GetLogger() *slog.Logger

GetLogger returns the global logger instance

func InitLogger

func InitLogger(level string)

InitLogger initializes the global logger with the specified level

func KeysIntoList added in v0.2.0

func KeysIntoList(keys iter.Seq[string]) []string

func ParseCronSchedule

func ParseCronSchedule(schedule string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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