Skip to content
brendoncarrollPublic

About

Standard Dependencies Using Go's context.Context Values

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standard Context

Standard Context (stdctx) is a Go library for associating implicit dependencies such as logging, filesystems, and network access with context.Context objects.

Standard contexts are a convention for keeping code well-behaved. A library or function instrumented with stdctx is not going to annoy the caller with weird dependencies or logs that can't be turned off. Instead code using stdctx will produce no logging or telemetry side effects by default.

If the caller decides it wants more information about how a stdctx instrumented function is behaving, then it can setup logging or telemetry on the context.Context and pass it to the callee.

Packages

  • logctx logging using slog
  • telctx telemetry
  • netctx networking

About

Standard Dependencies Using Go's context.Context Values

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址