51 Resources
Golang context Libraries
Zapctx: an encapsulation of zap, adding WithContext to the logger
Abstract zapctx is an encapsulation of zap, adding WithContext to the logger. Fe
Morecontext - Context.Context helpers to make your life slightly easier
morecontext context.Context helpers to make your life slightly easier. -- import
Demonstrate a bounded context distributed over multiple repositories. In `go`
Contextive Demo - Go - Service This repository illustrates the use of Contextive in an environment where multiple repositories are part of the same bo
Fetch gas stations prices from Tankerkönig api with Orion Context Broker persistence
tankerkoenig-fuel-machinery - Fetch gas stations from tankerkoenig api and persist them into an Orion Context Broker Scope This project aims to fetch
Tiny structured logging abstraction or facade for various logging libraries, allowing the end user to plug in the desired logging library in main.go
Tiny structured logging abstraction or facade for various logging libraries, allowing the end user to plug in the desired logging library in main.go.
Kcs - KubeConfig Context Switcher
KubeConfig Context Switch Simple cli tool for kube config context switching with
Thread-safe LRU cache with permanency and context-based expiration
go-wlru Thread-safe LRU cache with permanency and context-based expiration Operational Complexity (Time) Operation Best Average Worst Access Θ(1) Θ(1)
This structured Error package wraps errors with context and other info
RErr package This structured Error package wraps errors with context and other info. It can be used to enrich logging, for example with a structured l
YALA - Yet Another Logging Abstraction for Go
YALA - Yet Another Logging Abstraction for Go Tiny structured logging abstraction with adapters for most popular logging Go libraries and easy way to
azctx: Azure context
azctx: Azure context azctx is a command line tool whose aim is to ease the use of the official az cli. It is heavily inspired by kubectx. It provides
Proxy server with go context, go cache
proxy-tut 1. 프록시 서버의 기능 클라이언트에게 요청이 오면 캐시되었는지 확인한후, 캐시되어있다면 본서버로 요청을 보내지 않고 데이터를 내려줍니다. 동일한 요청이 여러개 들어올 시(본서버에서 응답을 받기전이라 캐시되지 않은경우) 동일한 요청은 본서버에 한번만
Kubeswitch - Easier way to switch your kubernetes context
Switch Kubectl Context Easier way to switch your kubernetes context Set PATH Dow
Go-context - A simply tryout of how contexts work in golang
go-context A simply tryout of how contexts work in golang The example here execu
Fast, structured, with filters and dynamic sinks. No levels. Logger & context keeper for Go language 🥝 It smell like a mushroom.
Kiwi logger & context keeper The project is long live experiment. Use it carefully. Kiwi /kiːwiː/ are birds native to New Zealand, in the genus Aptery
Golang's Context package examples
Golang's Context package examples To run the server: go run . api-up The server will be started in port 3001 In the file "router.go" of the folder "ap
gpool - a generic context-aware resizable goroutines pool to bound concurrency based on semaphore.
gpool - a generic context-aware resizable goroutines pool to bound concurrency. Installation $ go get github.com/sherifabdlnaby/gpool import "github.c
Cerbos is the open core, language-agnostic, scalable authorization solution that makes user permissions and authorization simple to implement and manage by writing context-aware access control policies for your application resources.
Painless access control for cloud-native applications Cerbos helps you super-charge your authorization implementation by writing context-aware access
Package ctxutil is a collection of functions for contexts.
ctxutil Package ctxutil is a collection of functions for contexts. Functions func Interrupt func Interrupt() context.Context Interrupt is a convenienc
Get your context value faster
goctx Get your context value faster How to use Replace v := ctx.Value(key) With v := goctx.Value(ctx, key) Benchmark There will be little difference w
Example code to demonstrate how to mock external clients via context.Context
Mocking external client libraries using context.Context This code is paired with a blog post: Mocking external client libraries using context.Context
Add request id to a request's context
RequestID 🔎 This is a very simple piece of middleware for adding request/correlation IDs to the context of a http request. By default, this module wi
containedctx detects is a linter that detects struct contained context.Context field
containedctx containedctx detects is a linter that detects struct contained context.Context field Instruction go install github.com/sivchari/contained
How to work with channels, goroutines, tickers, mutexes and context cancelation
Concurrency tasks This page holds 4 concurrency practical tasks to help you to understand how to write concurrent code. They will help you to understa
Lightweight Router for Golang using net/http standard library with custom route parsing, handler and context.
Go-Lightweight-Router Lightweight Router for Golang using net/http standard library with custom route parsing, handler and context. Further developmen
A restart tracker that gives context to what is restarting in your cluster
A restart tracker that gives context to what is restarting in your cluster
Go library that makes it easy to add automatic retries to your projects, including support for context.Context.
go-retry Go library that makes it easy to add automatic retries to your projects, including support for context.Context. Example with context.Context
Go package for working with Library of Congress data in an SFO Museum context.
go-sfomuseum-libraryofcongress Go package for working with Library of Congress data in an SFO Museum context. Documentation Documentation is incomplet
kdigger is a context discovery tool for Kubernetes penetration testing.
kdigger kdigger, short for "Kubernetes digger", is a context discovery tool for Kubernetes penetration testing. This tool is a compilation of various
kcon is a simple CLI tool to switch the context of your Kubeconfig file.
kcon kcon is a simple CLI tool to switch the context of your Kubeconfig file. Scope The code published here is educational only. Usage Usage of kcon:
noctx finds sending http request without context.Context.
noctx noctx finds sending http request without context.Context. You should use noctx if sending http request in your library. Passing context.Context
HTML Canvas 2D Context API for mobile, desktop and web
canvas HTML Canvas 2D Context API for mobile, desktop and web Context2D API https://www.w3.org/TR/2dcontext/ native code implement https://github.com/
`ctxio` gives `io.copy` operations the ability to cancel with context and retrieve progress data.
ctxio The ctxio package gives golang io.copy operations the ability to terminate with context and retrieve progress data. Install go get github.com/
keeper is package for Go that provides a mechanism for waiting a result of execution function until context cancel.
keeper is package for Go that provides a mechanism for waiting a result of execution function until context cancel.
Command kube-tmux prints Kubernetes context and namespace to tmux status line.
kube-tmux Command kube-tmux prints Kubernetes context and namespace to tmux status line.
A lightweight job scheduler based on priority queue with timeout, retry, replica, context cancellation and easy semantics for job chaining. Build for golang web apps.
Table of Contents Introduction What is RIO? Concern An asynchronous job processor Easy management of these goroutines and chaining them Introduction W
Golang errors with stacktrace and context
merry Add context to errors, including automatic stack capture, cause chains, HTTP status code, user messages, and arbitrary values. The package is la
lightweight, idiomatic and composable router for building Go HTTP services
chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services
lightweight, idiomatic and composable router for building Go HTTP services
chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services
HTTP Session Management for Go
SCS: HTTP Session Management for Go Features Automatic loading and saving of session data via middleware. Choice of server-side session stores includi
xmux is a httprouter fork on top of xhandler (net/context aware)
Xmux Xmux is a lightweight high performance HTTP request muxer on top xhandler. Xmux gets its speed from the fork of the amazing httprouter. Route par
Pure is a fast radix-tree based HTTP router
package pure Pure is a fast radix-tree based HTTP router that sticks to the native implementations of Go's "net/http" package; in essence, keeping the
:rotating_light: Is a lightweight, fast and extensible zero allocation HTTP router for Go used to create customizable frameworks.
LARS LARS is a fast radix-tree based, zero allocation, HTTP router for Go. view examples. If looking for a more pure Go solution, be sure to check out
Go http.Hander based middleware stack with context sharing
wrap Package wrap creates a fast and flexible middleware stack for http.Handlers. Features small; core is only 13 LOC based on http.Handler interface;
Go cross-platform glfw library for creating an OpenGL context and receiving events.
glfw Package glfw experimentally provides a glfw-like API with desktop (via glfw) and browser (via HTML5 canvas) backends. It is used for creating a G
Context Tree Weighting
Context Tree Weighting Documentation Package ctw provides an implementation of the Context Tree Weighting algorithm. Also contained is an implementati
xlog is a logger for net/context aware HTTP applications
⚠️ Check zerolog, the successor of xlog. HTTP Handler Logger xlog is a logger for net/context aware HTTP applications. Unlike most loggers, xlog will
High performance async-io(proactor) networking for Golang。golangのための高性能非同期io(proactor)ネットワーキング
gaio Introduction 中文介绍 For a typical golang network program, you would first conn := lis.Accept() to get a connection and go func(net.Conn) to start a
Hunch provides functions like: All, First, Retry, Waterfall etc., that makes asynchronous flow control more intuitive.
Hunch Hunch provides functions like: All, First, Retry, Waterfall etc., that makes asynchronous flow control more intuitive. About Hunch Go have sever
gpool - a generic context-aware resizable goroutines pool to bound concurrency based on semaphore.
gpool - a generic context-aware resizable goroutines pool to bound concurrency. Installation $ go get github.com/sherifabdlnaby/gpool import "github.c
Slack Bot Framework
slacker Built on top of the Slack API github.com/slack-go/slack with the idea to simplify the Real-Time Messaging feature to easily create Slack Bots,
HTTP Session Management for Go
SCS: HTTP Session Management for Go Features Automatic loading and saving of session data via middleware. Choice of server-side session stores includi