utils

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StrToBool = strconv.ParseBool

Functions

func ElapsedTime

func ElapsedTime(since time.Time) int64

Time in millliseconds elapsed since a time

func MatchGlob

func MatchGlob(value string, pattern string) bool

func MinInt64

func MinInt64(x, y int64) int64

func MsPrecision

func MsPrecision(t *time.Time) time.Time

func MsToTime

func MsToTime(msInt int64) time.Time

func NowMs

func NowMs() int64

func StrToFloat64 added in v0.0.16

func StrToFloat64(data string) (float64, error)

func StrToInt64

func StrToInt64(data string) (int64, error)

func TimeToMs

func TimeToMs(t *time.Time) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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