dequoter/appctx.go
Leon Mika 3cb5795ca5
All checks were successful
Build / build (push) Successful in 4m27s
Added some more commands and mades some quality of life improvements
2026-01-25 11:00:40 +11:00

16 lines
225 B
Go

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)
}