Skip to content
/ gls Public
forked from tt7/gls

GoRoutine Local Storage using GoRoutine IDs

License

Notifications You must be signed in to change notification settings

jason-xxl/gls

This branch is 1 commit ahead of tt7/gls:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e606233 · Apr 7, 2015

History

5 Commits
Mar 23, 2015
Mar 23, 2015
Apr 7, 2015
Mar 23, 2015
Mar 29, 2015
Mar 30, 2015

Repository files navigation

gls GoDoc Build Status Coverage Status

GoRoutine local storage using GoRoutine IDs

This package is heavily inspired by jtolds' gls package.

I made my own version of jtolds' package because Brad Fitzpatrick created a function to get the current GoRoutine ID. Am I a horrible person for using this function? Probably.

Why is this useful?

So far, the only thing I'm using it for is storing a unique identifier for a given HTTP request so I can track its progress through my code via logging. I felt this approach was easier and less messy than refactoring every function to take some kind of context or identifier.

Enjoy!

About

GoRoutine Local Storage using GoRoutine IDs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%