Files
sift/vendor/github.com/itchyny/gojq/env.go
T
kyle 9444a35322 p1: /v2/scrape, /v1/fetch, auth, CLI, contract tests
Single Fetcher.Fetch on the Guard that holds DenyPrefixes. skipTlsVerification
is ignored. No 502. keys add writes the secret only to --out. Release binary
has no -test-allow-prefix.
2026-09-22 21:54:01 -07:00

50 lines
752 B
Go

package gojq
import "context"
type env struct {
pc int
stack *stack
paths *stack
scopes *scopeStack
values []any
codes []*code
codeinfos []codeinfo
forks []fork
backtrack bool
offset int
expdepth int
label int
args [32]any // len(env.args) > maxarity
ctx context.Context
}
func newEnv(ctx context.Context) *env {
return &env{
stack: newStack(),
paths: newStack(),
scopes: newScopeStack(),
ctx: ctx,
}
}
type scope struct {
id int
offset int
pc int
saveindex int
outerindex int
}
type fork struct {
pc int
stackindex int
stacklimit int
scopeindex int
scopelimit int
pathindex int
pathlimit int
offset int
expdepth int
}