utils

package
v0.0.0-...-243feeb Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsVerbose bool

Functions

func ErrorString

func ErrorString(e error) string

ErrorString returns an error message for an error If the error is nil it returns the empty string

func RemoveDiacritics

func RemoveDiacritics(text string) (string, error)

RemoveDiacritics removes "diacritics" :^) Okay, diacritics are special characters, e.g. GÉANT, becomes GEANT This is useful when using it for substring matching

func ValidityDays

func ValidityDays(v time.Time) int

ValidityDays returns the amount of days left for the validity timestamp

func Verbosef

func Verbosef(msg string, args ...any)

Conditionally (format) print verbose messages

Types

This section is empty.

Jump to

Keyboard shortcuts

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