16 lines
225 B
Go
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)
|
|
}
|