shortcuts

package
v0.1.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequiredEnvVar

func CheckRequiredEnvVar(varName string, configValue string, defaultValue string)

CheckRequiredEnvVar checks if a required environment variable is set If the variable is not set, it will log a fatal error @param varName string @param configValue string @param defaultValue string @return void

func ContainsDateTime

func ContainsDateTime(slice []primitive.DateTime, item time.Time) bool

ContainsDateTime checks if a slice of primitive.DateTime contains a specific time.Time

func ContainsInt

func ContainsInt(slice []int, item int) bool

ContainsInt checks if a slice of int contains a specific int

func FailOnError

func FailOnError(err error, msg string)

FailOnError panics if err is not nil @param err error @param msg string @return void

func LogOnError

func LogOnError(err error, msg string) bool

LogOnError logs an error message if err is not nil Returns true if err is not nil @param err error @param msg string @return bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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