util

package
v0.0.0-...-72a77aa Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WarningLogger *log.Logger
	InfoLogger    *log.Logger
	ErrorLogger   *log.Logger
)
View Source
var (
	ViperInstance *viper.Viper
)

Functions

func ArrayMap

func ArrayMap[T, U any](data []T, f func(T) U) []U

func CheckError

func CheckError(err error)

func CheckErrorWithMsg

func CheckErrorWithMsg(err error, msg string)

func Error

func Error(v any)

func Fatal

func Fatal(v any)

func Info

func Info(v any)

func InitConfig

func InitConfig(viperInstance *viper.Viper)

func ReportStatus

func ReportStatus(configPath string)

func SetNodeUrlIfEmpty

func SetNodeUrlIfEmpty(configItem string)

func Warn

func Warn(v any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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