generator

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationID

func CorrelationID(timeZone string) string

Generate a correlation ID with timestamp and random string

func EpochTimestamp

func EpochTimestamp(timeZone string) int

Returns timestamp as epoch time in int format

func FileNameTimestamp

func FileNameTimestamp(timeZone string) string

Generate timestamp in RFC3339 (minus colons and plus sign) format with timezone provided

func GetLocation

func GetLocation(timeZone string) *time.Location

Returns the timezone location based on the timezone string provided

func RandomString

func RandomString(n int) string

Generate random string of length n

func StringTimestamp

func StringTimestamp(timeZone string) string

Generate timestamp in RFC3339 (minus dashes and colons) format with timezone provided

func Timestamp

func Timestamp(timeZone string) string

Generate timestamp in RFC3339 format with timezone provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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