utils

package
v0.0.0-...-f219ead Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePathIfNotExist

func CreatePathIfNotExist(path string) error

CreatePathIfNotExist creates a specific path if not exist

func GenerateAuthCode

func GenerateAuthCode(apiKey string) string

func GenerateCerts

func GenerateCerts(folder string) error

func GetLogger

func GetLogger() *logger.Logger

GetLogger returns a single instance of a Logger configured to save logs to a rotating file.

func GetMyPath

func GetMyPath() (string, error)

GetMyPath returns the directory path where the currently running executable is located. Returns a string representing the directory path, and an error if any error occurs during the process.

func Getenv

func Getenv(key string) string

Getenv returns the environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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