Documentation
¶
Overview ¶
Package generator provides functions to generate things, such as: random strings, timestamps, and correlation IDs, etc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorrelationID ¶
Generate a correlation ID with timestamp and random string
func EpochTimestamp ¶
Returns timestamp as epoch time in int format
func FileNameTimestamp ¶
Generate timestamp in RFC3339 (minues dashes and colons) format with timezone provided
func GetLocation ¶
Returns the timezone location based on the timezone string provided
func StringTimestamp ¶
Generate timestamp in RFC3339 (minues dashes and colons) format with timezone provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.