utils

package
v2.51.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSafeTimestampWithMilliseconds added in v2.37.0

func GetSafeTimestampWithMilliseconds(inputTimestamp nrtime.EpochMilliseconds) nrtime.EpochMilliseconds

a helper function that is used to populate a timestamp with non-zero milliseconds if the millisecond count has been found zero, usually when generated with time.Time() in Golang which does not have a nanoseconds field; which helps mutations such as those in changetracking, the API of which requires a timestamp with non-zero milliseconds.

func IntArrayToString

func IntArrayToString(integers []int) string

IntArrayToString converts an array of integers to a comma-separated list string - e.g [1, 2, 3] will be converted to "1,2,3".

Types

This section is empty.

Jump to

Keyboard shortcuts

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