utils

package
v1.1.5-0...-12a9ee2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 8 Imported by: 0

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

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