package
1.101.9
Repository: https://github.com/vonage/gosrvlib.git
Documentation: pkg.go.dev

# Functions

CaptureOutput hijacks and captures stderr and stdout for testing the given function.
Context returns a context initialized with a NOP logger for testing.
ContextWithHTTPRouterParams creates a context copy containing map of URL path segments.
ContextWithLogObserver returns a context initialized with a NOP logger for testing.
ReplaceDateTime replaces a datetime value.
ReplaceUnixTimestamp replaces a unix timestamp.
RouterWithHandler returns a new httprouter instance with the give handler function attached.

# Interfaces

TestHTTPResponseWriter wraps a standard lib http.ResponseWriter to allow mock generation.