utils

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugLogger *log.Logger
	InfoLogger  *log.Logger
	WarnLogger  *log.Logger
	ErrorLogger *log.Logger
	SteamLogger *log.Logger
)

Functions

func CheckError

func CheckError(err error)

func CheckFileExists

func CheckFileExists(filepath string) bool

func ChmodRecursive added in v1.0.78

func ChmodRecursive(path string, mode os.FileMode) error

func CopyStruct added in v1.0.76

func CopyStruct(a interface{}, b interface{})

func CreateFolder

func CreateFolder(folderPath string) error

func SetupLoggers

func SetupLoggers(logDir string)

func ToJSON added in v1.0.76

func ToJSON(a interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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