MCPcopy Create free account
hub / github.com/coder/slog / ExampleHelper

Function ExampleHelper

example_helper_test.go:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20var l = slog.Make(sloghuman.Sink(os.Stdout))
21
22func ExampleHelper() {
23 ctx := context.Background()
24 httpLogHelper(ctx, http.StatusBadGateway)
25
26 // 2019-12-07 21:18:42.567 [INFO] <example_helper_test.go:24> sending HTTP response {"status": 502}
27}

Callers

nothing calls this directly

Calls 1

httpLogHelperFunction · 0.85

Tested by

no test coverage detected