utils

package
v1.10.53 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1, op, v2 string) bool

operator compare returns true if the first field and the third field equation holds else false

func CurrentMicros

func CurrentMicros() int64

func CurrentMillis

func CurrentMillis() int64

func NewUuid

func NewUuid() string

func Subset added in v1.10.22

func Subset(set []string, sub int) []string

Types

type ElapsedTimer

type ElapsedTimer struct {
	// contains filtered or unexported fields
}

func NewElapsedTimer

func NewElapsedTimer() *ElapsedTimer

func (*ElapsedTimer) Duration

func (et *ElapsedTimer) Duration() time.Duration

func (*ElapsedTimer) Elapsed

func (et *ElapsedTimer) Elapsed() string

func (*ElapsedTimer) ElapsedMs

func (et *ElapsedTimer) ElapsedMs() string

Jump to

Keyboard shortcuts

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