dequoter/appctx.go

16 lines
225 B
Go
Raw Normal View History

package main
import (
"context"
"ucl.lmika.dev/ucl"
)
type uclInstKeyType struct{}
var uclInstKey = uclInstKeyType{}
func uclInstFromContext(ctx context.Context) *ucl.Inst {
return ctx.Value(uclInstKey).(*ucl.Inst)
}