traceunic

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 3 Imported by: 1

README ¶

📦 Package traceunic

Source Path: pkg/trace_unic/

🚀 Functions

GenerateTraceID

GenerateTraceID generates a trace ID, given a prefix.

The trace ID is generated as {prefix}{date}{random 8-character UUID}, where {date} is the current date in the format "20060102".

Note that the maximum length of the generated trace ID is 24 characters.

func GenerateTraceID(prefix string) string

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func GenerateTraceID ¶

func GenerateTraceID(prefix string) string

GenerateTraceID generates a trace ID, given a prefix.

The trace ID is generated as {prefix}_{date}_{random 8-character UUID}, where {date} is the current date in the format "20060102".

Note that the maximum length of the generated trace ID is 24 characters.

Types ¶

This section is empty.

Jump to

Keyboard shortcuts

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