utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RequestIDKey contextKey = "request-id"

Variables

This section is empty.

Functions

func ExtractRequestIdFromContext

func ExtractRequestIdFromContext(ctx context.Context) string

func GetFileName

func GetFileName() string

GetFileName returns the file name of the caller

func GetFunctionName

func GetFunctionName() string

GetFunctionName returns the function name of the caller

func GetLineNumber

func GetLineNumber() int

GetLineNumber returns the line number of the caller

func ParseTime

func ParseTime(timeStr string) (time.Time, error)

parseTime parses a string into a time.Time using the RFC3339 layout

Types

This section is empty.

Jump to

Keyboard shortcuts

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