pkgsrc/devel/go-gls/buildlink3.mk
bsiegert 92cb57b4db New package, go-gls-4.2.0.
Every so often, a thread shows up on the golang-nuts asking for some form of
goroutine-local-storage, or some kind of goroutine id, or some kind of context.
There are a few valid use cases for goroutine-local-storage, one of the most
prominent being log line context. One poster was interested in being able to
log an HTTP request context id in every log line in the same goroutine as the
incoming HTTP request, without having to change every library and function call
he was interested in logging.

It is my duty to point you to https://blog.golang.org/context, which is how
Google solves all of the problems you'd perhaps consider using this package for
at scale.
2016-08-21 09:14:25 +00:00

15 lines
387 B
Makefile

# $NetBSD: buildlink3.mk,v 1.1 2016/08/21 09:14:25 bsiegert Exp $
BUILDLINK_TREE+= go-gls
.if !defined(GO_GLS_BUILDLINK3_MK)
GO_GLS_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-gls= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-gls?= build
BUILDLINK_API_DEPENDS.go-gls+= go-gls>=4.2.0
BUILDLINK_PKGSRCDIR.go-gls?= ../../devel/go-gls
.endif # GO_GLS_BUILDLINK3_MK
BUILDLINK_TREE+= -go-gls