functions

package
v0.0.0-...-c113622 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(op string, left, right interface{}) (interface{}, error)

Calculate will to calculate two number by operator

func Concat

func Concat(input ...interface{}) (string, error)

Concat will concat any data as string

func GetTimestamp

func GetTimestamp(strLen int) (int, error)

GetTimestamp will return the timestamp string

func SearchValue

func SearchValue(arr interface{}, originKey string, originValue interface{}, destKey string) (interface{}, error)

SearchValue will search key/value in an collection and return the value of destination key

func TimeDelta

func TimeDelta(timeStamp int, value int, typ string) (int, error)

TimeDelta given timestamp(10bit) and calculate relative delta time

Types

This section is empty.

Jump to

Keyboard shortcuts

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