1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 00:57:15 +03:00

dev: Add summary how start to dump tree works

This commit is contained in:
Mattias Wadman 2021-11-05 23:52:31 +01:00
parent bfec366613
commit 4c6de82354

View File

@ -32,3 +32,31 @@ gojq execution debug:
```sh
GOJQ_DEBUG=1 go run -tags debug main.go ...
```
## From start to decoded value
```
main:main()
cli.Main(default registry)
interp.New(registry, std os interp implementation)
interp.(*Interp).Main()
interp.jq _main/0:
args.jq _args_parse/2
populate filenames for input/0
interp.jq inputs/0
foreach valid input/0 output
interp.jq open
funcs.go _open
interp.jq decode
funcs.go _decode
decode.go Decode(...)
...
interp.jq eval expr
funcs.go _eval
interp.jq display
funcs.go _display
for interp.(decodeValueBase).Display()
dump.go
print tree
empty output
```