utils

package
v0.0.0-...-e5a9b9a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvOr

func EnvOr(key, def string) string

если есть значение энв. переменной по ключу - перезаписывает def

func ExitConsole

func ExitConsole(c *console.Console) bool

func GetAbsPath

func GetAbsPath(path string) (string, error)

получение абсолютного пути

func HumanDuration

func HumanDuration(t time.Time) string

func HumanDurationC

func HumanDurationC(t time.Time) string

func IsAsciiPrintable

func IsAsciiPrintable(s string) bool

func StrInSlice

func StrInSlice(line string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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