utils

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureTrailingSlash

func EnsureTrailingSlash(path *string)

func IsDirEmpty

func IsDirEmpty(path string) (bool, error)

func NewUnixTimestamp added in v0.12.90

func NewUnixTimestamp() string

func ParseExtraVars added in v0.17.0

func ParseExtraVars(extraVars string) (extraVarsMap map[string]string, err error)

func ProtoString added in v0.12.0

func ProtoString(s string) *string

helper func to package strings up nicely for protobuf

func StringSliceContains added in v0.13.90

func StringSliceContains(s []string, str string) bool

func TimeTrack added in v0.19.90

func TimeTrack(start time.Time, name string, log *logrus.Entry)

func TimeTrackFunction added in v0.23.1

func TimeTrackFunction(start time.Time, log *logrus.Entry)

func TruncateString added in v1.13.0

func TruncateString(str string, length int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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