utils

package
v0.0.0-...-0d8279c Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateMd5

func CalculateMd5(s string) string

CalculateMd5 calculates the md5 hash of a string

func CoverToYaml

func CoverToYaml(v any) string

CoverToYaml converts any type to yaml string

func CovertToJson

func CovertToJson(v any) string

CovertToJson converts any type to json string

func CovertToJsonWithIndent

func CovertToJsonWithIndent(v any) string

CovertToJsonWithIndent converts any type to json string with indent

func EnsureDirExists

func EnsureDirExists(dir string) error

EnsureDirExists ensures that the directory exists

func FileExists

func FileExists(path string) (bool, error)

FileExists checks if the file exists

func GetConfigDir

func GetConfigDir() string

GetConfigDir returns the config directory

func GetDateTime

func GetDateTime() string

GetDateTime returns the current date and time

Types

This section is empty.

Jump to

Keyboard shortcuts

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