Categorygithub.com/toggly/go-utils
modulepackage
5.0.4+incompatible
Repository: https://github.com/toggly/go-utils.git
Documentation: pkg.go.dev

# README

go-utils

Golang routines and utils

How to use

go get gopkg.in/toggly/go-utils.v1

# Packages

No description provided by the author

# Functions

GenerateUUID gets UUID v4 string.
GetRealIPAddr gets real IP Addr from request's headers.
RequestIDCtx adds request id to context.
ServiceInfo adds service information to the response header.
VersionCtx adds api version to context.

# Constants

ContextReqIDKey gets key for request id.
ContextVersionKey gets key for version.
XRequestID gets name of header.
XServiceName gets service name in header.
XServiceVersion gets version.

# Structs

StructuredLogger struct.
StructuredLoggerEntry struct.

# Type aliases

LogFields type.