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.
50 lines
752 B
Go
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
|
|
}
|