utils

package
v0.0.0-...-56114fe Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugPrint

func DebugPrint(prefix string, s interface{})

DebugPrint pretty-prints the given object with the given prefix at v=2 verbosity.

func Elapsed

func Elapsed(start time.Time, callback func(time.Duration))

Elapsed calls the the specified callback and passed the elapsed duration since the given start time.

func HttpRequestPrint

func HttpRequestPrint(prefix string, r *http.Request)

HttpRequestPrint pretty-prints a given http.Request object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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