File: README.md

package info (click to toggle)
golang-github-getlantern-context 0.0~git20190109.c447772-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 80 kB
  • sloc: makefile: 2
file content (6 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
# context [![Travis CI Status](https://travis-ci.org/getlantern/context.svg?branch=master)](https://travis-ci.org/getlantern/context) [![Coverage Status](https://coveralls.io/repos/getlantern/context/badge.png?branch=master)](https://coveralls.io/r/getlantern/context) 

Provides goroutine-based context state inspired by https://github.com/tylerb/gls
and https://github.com/jtolds/gls. It uses the same basic hack as tylerb's
library, but adds a stack abstraction that allows nested contexts similar to
jtolds' library, but using `Enter()` and `Exit()` instead of callback functions.