utils

package
v0.0.0-...-ebdf8ee Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black   = "black"
	Red     = "red"
	Green   = "green"
	Yellow  = "yellow"
	Blue    = "blue"
	Magenta = "magenta"
	Cyan    = "cyan"
	White   = "white"
)
View Source
const (
	HeaderTraceId = "x-trace-id"
)

Variables

This section is empty.

Functions

func Color

func Color(color string, message string) string

func GetMDWithTrxid

func GetMDWithTrxid(ctx context.Context, trxid string) metadata.MD

func NewEnv

func NewEnv(key string) string

func NewEnvDefault

func NewEnvDefault(key, value string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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