typenative 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +2 -0
- package/CHANGELOG.md +372 -0
- package/CONTRIBUTION.md +1 -1
- package/README.md +62 -22
- package/ROUND2-HANDOFF.md +200 -0
- package/bin/cli.js +2 -0
- package/bin/go/bridge.js +74 -14
- package/bin/go/convert.js +48 -0
- package/bin/go/metadata.js +13 -4
- package/bin/go/overrides.js +4 -6
- package/bin/go/stdlib.generated.js +2 -0
- package/bin/index.js +130 -2
- package/bin/main.js +2 -0
- package/bin/node/assert.js +2 -2
- package/bin/node/async_hooks.js +1 -1
- package/bin/node/buffer.js +16 -5
- package/bin/node/child_process.js +57 -9
- package/bin/node/cluster.js +44 -6
- package/bin/node/core.js +1 -1
- package/bin/node/crypto.js +205 -4
- package/bin/node/crypto_keys.js +21 -21
- package/bin/node/dgram.js +231 -7
- package/bin/node/diagnostics_channel.js +3 -3
- package/bin/node/dns.js +472 -9
- package/bin/node/errno_tables.js +445 -0
- package/bin/node/events.js +3 -3
- package/bin/node/fetch.js +2 -2
- package/bin/node/fs.js +24 -17
- package/bin/node/fs_watch.js +5 -5
- package/bin/node/http.js +131 -33
- package/bin/node/http2.js +7 -4
- package/bin/node/module_v8.js +142 -0
- package/bin/node/net.js +17 -14
- package/bin/node/path.js +17 -3
- package/bin/node/process.js +274 -9
- package/bin/node/readline.js +272 -1
- package/bin/node/registry.js +5 -1
- package/bin/node/sqlite.js +65 -17
- package/bin/node/stream.js +220 -22
- package/bin/node/stream_web.js +10 -10
- package/bin/node/system_extra.js +3 -3
- package/bin/node/test.js +834 -234
- package/bin/node/test_coverage.js +187 -0
- package/bin/node/test_report.js +1392 -0
- package/bin/node/test_run.js +575 -0
- package/bin/node/timers.js +4 -4
- package/bin/node/tls.js +5 -5
- package/bin/node/url.js +23 -5
- package/bin/node/util.js +49 -8
- package/bin/node/util_extra.js +13 -37
- package/bin/node/webview.js +654 -0
- package/bin/node/worker_threads.js +80 -20
- package/bin/node/zlib.js +3 -3
- package/bin/parse-node.js +4 -0
- package/bin/transpiler.js +14457 -1723
- package/bin/typecheck-node.js +1 -0
- package/bin/version.js +1 -1
- package/conformance.md +1153 -884
- package/examples/README.md +47 -10
- package/examples/desktop-notes/README.md +108 -0
- package/examples/desktop-notes/bench.mjs +125 -0
- package/examples/desktop-notes/main.ts +131 -0
- package/examples/desktop-notes/package-lock.json +726 -0
- package/examples/desktop-notes/package.json +9 -0
- package/examples/desktop-notes/ui.ts +176 -0
- package/examples/dupe-finder/README.md +76 -0
- package/examples/dupe-finder/bench.mjs +120 -0
- package/examples/dupe-finder/main.ts +87 -0
- package/examples/json-server/README.md +31 -29
- package/examples/json-server/bench.mjs +130 -38
- package/examples/mandelbrot-png/README.md +65 -0
- package/examples/mandelbrot-png/bench.mjs +95 -0
- package/examples/mandelbrot-png/main.ts +98 -0
- package/examples/mandelbrot-png/preview.png +0 -0
- package/examples/marked-cli/README.md +159 -0
- package/examples/marked-cli/bench.mjs +178 -0
- package/examples/marked-cli/main.ts +292 -0
- package/examples/marked-cli/parity.mjs +185 -0
- package/examples/marked-cli/vendor/marked/LICENSE +44 -0
- package/examples/marked-cli/vendor/marked/VENDOR.md +26 -0
- package/examples/todo-cli/README.md +69 -0
- package/examples/todo-cli/bench.mjs +89 -0
- package/examples/todo-cli/main.ts +92 -0
- package/examples/yaml-cli/README.md +136 -0
- package/examples/yaml-cli/bench.mjs +265 -0
- package/examples/yaml-cli/main.ts +29 -0
- package/examples/yaml-cli/parity.mjs +156 -0
- package/examples/yaml-cli/vendor/yaml/LICENSE +13 -0
- package/examples/yaml-cli/vendor/yaml/VENDOR.md +25 -0
- package/govendor/github.com/jchv/go-webview2/LICENSE +22 -0
- package/govendor/github.com/jchv/go-webview2/README.md +21 -0
- package/govendor/github.com/jchv/go-webview2/common.go +84 -0
- package/govendor/github.com/jchv/go-webview2/go.mod +3 -0
- package/govendor/github.com/jchv/go-webview2/internal/w32/w32.go +194 -0
- package/govendor/github.com/jchv/go-webview2/internal/w32/w32_386.go +14 -0
- package/govendor/github.com/jchv/go-webview2/internal/w32/w32_64bit.go +15 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_COLOR.go +8 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND.go +9 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_KEY_EVENT_KIND.go +10 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_MOVE_FOCUS_REASON.go +9 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_PHYSICAL_KEY_STATUS.go +10 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/COREWEBVIEW2_WEB_RESOURCE_CONTEXT.go +23 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2AcceleratorKeyPressedEventArgs.go +78 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2AcceleratorKeyPressedEventHandler.go +52 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2Controller.go +132 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2Controller2.go +74 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2CreateCoreWebView2ControllerCompletedHandler.go +48 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2NavigationCompletedEventArgs.go +17 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2NavigationCompletedEventHandler.go +48 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2Settings.go +270 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2WebResourceRequest.go +43 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2WebResourceRequestedEventArgs.go +51 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2WebResourceRequestedEventHandler.go +48 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2WebResourceResponse.go +21 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2_2.go +21 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebView2_3.go +60 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/ICoreWebViewSettings.go +396 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/chromium.go +361 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/chromium_386.go +24 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/chromium_amd64.go +22 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/chromium_arm64.go +26 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/comproc.go +13 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/comproc_go17.go +51 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/comproc_go18.go +16 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/corewebview2.go +411 -0
- package/govendor/github.com/jchv/go-webview2/pkg/edge/guid.go +223 -0
- package/govendor/github.com/jchv/go-webview2/webview.go +482 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/README.md +3 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/module.go +153 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/module_386.go +6 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/module_amd64.go +6 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/module_arm64.go +6 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/sdk/arm64/WebView2Loader.dll +0 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/sdk/x64/WebView2Loader.dll +0 -0
- package/govendor/github.com/jchv/go-webview2/webviewloader/sdk/x86/WebView2Loader.dll +0 -0
- package/govendor/github.com/jchv/go-winloader/LICENSE.md +7 -0
- package/govendor/github.com/jchv/go-winloader/README.md +124 -0
- package/govendor/github.com/jchv/go-winloader/common.go +11 -0
- package/govendor/github.com/jchv/go-winloader/go.mod +3 -0
- package/govendor/github.com/jchv/go-winloader/internal/loader/loader.go +25 -0
- package/govendor/github.com/jchv/go-winloader/internal/loader/machine.go +53 -0
- package/govendor/github.com/jchv/go-winloader/internal/memloader/cache.go +42 -0
- package/govendor/github.com/jchv/go-winloader/internal/memloader/loader.go +253 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/export.go +76 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/format.go +522 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/import.go +106 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/module.go +91 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/reloc.go +177 -0
- package/govendor/github.com/jchv/go-winloader/internal/pe/util.go +40 -0
- package/govendor/github.com/jchv/go-winloader/internal/vmem/common.go +55 -0
- package/govendor/github.com/jchv/go-winloader/internal/vmem/memory_other.go +71 -0
- package/govendor/github.com/jchv/go-winloader/internal/vmem/memory_windows.go +179 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/hacks_other.go +17 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/hacks_windows.go +73 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/loader_windows.go +64 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/machine_windows.go +32 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/nativearch_386.go +9 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/nativearch_amd64.go +9 -0
- package/govendor/github.com/jchv/go-winloader/internal/winloader/nativearch_arm64.go +9 -0
- package/govendor/github.com/jchv/go-winloader/loader_other.go +24 -0
- package/govendor/github.com/jchv/go-winloader/loader_windows.go +33 -0
- package/govendor/manifest.txt +3 -1
- package/package.json +1 -1
- package/tsparser/main.go +4 -0
- package/types/typenative-go.d.ts +23 -0
- package/types/typenative-npm.d.ts +359 -7
- package/types/typenative.d.ts +283 -42
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Round 2 handoff: marked
|
|
2
|
+
|
|
3
|
+
You're picking up round 2 of 3 in a series of "flagship examples" for
|
|
4
|
+
TypeNative (a TypeScript-to-Go transpiler, repo `danisss9/TypeNative`). Each
|
|
5
|
+
round compiles a real, unmodified npm package's TypeScript source to a native
|
|
6
|
+
binary and proves its output matches Node byte for byte. Round 1 (the `yaml`
|
|
7
|
+
CLI) is done; round 3 is the Angular template parser. This round is
|
|
8
|
+
[marked](https://github.com/markedjs/marked).
|
|
9
|
+
|
|
10
|
+
If the original plan specifies something for round 2 that differs from this
|
|
11
|
+
brief, the plan wins.
|
|
12
|
+
|
|
13
|
+
## Where things stand
|
|
14
|
+
|
|
15
|
+
- Round 1 is on branch `claude/brave-ride-d67lzw`, PR
|
|
16
|
+
[danisss9/TypeNative#30](https://github.com/danisss9/TypeNative/pull/30),
|
|
17
|
+
open and already merged with current `main`. Each round ships as its own
|
|
18
|
+
PR. If #30 hasn't merged when you start, branch from it (round 2 needs its
|
|
19
|
+
transpiler fixes); otherwise branch from `main`. Don't open a PR unless the
|
|
20
|
+
user asks.
|
|
21
|
+
- Use `examples/yaml-cli/` as the template for everything:
|
|
22
|
+
[main.ts](examples/yaml-cli/main.ts), [parity.mjs](examples/yaml-cli/parity.mjs),
|
|
23
|
+
[bench.mjs](examples/yaml-cli/bench.mjs), [README.md](examples/yaml-cli/README.md),
|
|
24
|
+
[vendor/yaml/VENDOR.md](examples/yaml-cli/vendor/yaml/VENDOR.md).
|
|
25
|
+
- State at handoff: conformance 523/523 under both the Node CLI and the
|
|
26
|
+
self-hosted native compiler; yaml parity 1608/1608; `bootstrap:check`
|
|
27
|
+
holds (56 Go files identical).
|
|
28
|
+
|
|
29
|
+
## The target
|
|
30
|
+
|
|
31
|
+
| | |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Upstream | https://github.com/markedjs/marked |
|
|
34
|
+
| Tag | `v18.1.2` (latest when this was written; use it unless the plan pins another) |
|
|
35
|
+
| Commit | `5beecae42b0beb07eaccc3a732560f56867a8301` |
|
|
36
|
+
| Source | `src/*.ts`, 11 files, about 4,070 lines, imports use `.ts` extensions |
|
|
37
|
+
| CLI | `bin/main.js` (JavaScript; imports the built `lib/marked.esm.js`) |
|
|
38
|
+
| License | MIT |
|
|
39
|
+
|
|
40
|
+
Things in the source that will matter:
|
|
41
|
+
|
|
42
|
+
- `src/rules.ts` is a large set of regexes (22 of them, two with lookbehind),
|
|
43
|
+
many composed at run time with `.replace()` on their `.source`. Expect the
|
|
44
|
+
regex translation and the backtracking engine to get a workout.
|
|
45
|
+
- `Lexer` / `Tokenizer` / `Parser` / `Renderer` classes, hooks and
|
|
46
|
+
extensions (`Instance.ts`), with `this`-bound callbacks.
|
|
47
|
+
- `bin/main.js` uses `fs.promises`, `createRequire`, `pathToFileURL`, dynamic
|
|
48
|
+
imports of `child_process` / `url`, and spawns `man` for `--help`.
|
|
49
|
+
|
|
50
|
+
## Deliverables (same rules as round 1)
|
|
51
|
+
|
|
52
|
+
Layout: `examples/marked-cli/`
|
|
53
|
+
|
|
54
|
+
- `vendor/marked/`: `src/` and `LICENSE` copied byte for byte, plus
|
|
55
|
+
`VENDOR.md` with the tag, the commit and the patch list. The target is an
|
|
56
|
+
empty patch list.
|
|
57
|
+
- `main.ts`: a TypeScript port of `bin/main.js`, importing
|
|
58
|
+
`./vendor/marked/src/marked.ts` instead of the built bundle. It must run
|
|
59
|
+
under both `node main.ts` and TypeNative. For `--help`, matching Node's
|
|
60
|
+
behavior (spawning `man`) isn't required for parity; just keep it working.
|
|
61
|
+
- `parity.mjs`: runs every corpus case through Node and the native binary,
|
|
62
|
+
compares stdout, stderr and exit code byte for byte, prints the pass rate
|
|
63
|
+
and writes failures to `.cache/failures/`. Copy yaml-cli's, including its
|
|
64
|
+
`withoutStackFrames()` normalization (Node prints JS stack frames; a native
|
|
65
|
+
binary has none).
|
|
66
|
+
- `bench.mjs`: (a) per-call latency, (b) throughput, alternating Node and
|
|
67
|
+
native runs, checking the outputs are identical.
|
|
68
|
+
- `README.md` in the yaml-cli style. Report losses honestly too: yaml-cli is
|
|
69
|
+
27x faster per call but 3.6x slower on 10 MB, and its README says so.
|
|
70
|
+
|
|
71
|
+
Corpora are fetched into a gitignored `.cache/` (`examples/*/.cache` is
|
|
72
|
+
already ignored), never committed.
|
|
73
|
+
|
|
74
|
+
**Proposed corpus** (confirm against the plan): marked's own spec suites at
|
|
75
|
+
the vendored tag.
|
|
76
|
+
|
|
77
|
+
- `test/specs/commonmark/commonmark.0.31.2.json`: 652 cases.
|
|
78
|
+
- `test/specs/gfm/gfm.0.29.json`: 28 cases.
|
|
79
|
+
- `test/specs/new/*.md`: about 223 cases.
|
|
80
|
+
- `test/specs/original/*.md`: 22 cases.
|
|
81
|
+
- `test/specs/redos/*`: 36 inputs, worth including with the 10 s timeout,
|
|
82
|
+
since they will expose any super-linear regex path.
|
|
83
|
+
|
|
84
|
+
Feed each case's markdown on stdin, in at least the default (GFM) mode and
|
|
85
|
+
with `--no-gfm` if the CLI supports it. Parity means native vs Node, not
|
|
86
|
+
native vs the spec's expected HTML; spec cases marked failing in marked
|
|
87
|
+
don't matter.
|
|
88
|
+
|
|
89
|
+
**Proposed benchmarks**:
|
|
90
|
+
|
|
91
|
+
- (a) A typical README (e.g. marked's own `README.md`) to HTML, 30 runs.
|
|
92
|
+
- (b) About 10 MB of generated markdown (headings, lists, tables, code
|
|
93
|
+
fences, links, emphasis) from a fixed-seed generator, 5 runs.
|
|
94
|
+
|
|
95
|
+
## Hard rules
|
|
96
|
+
|
|
97
|
+
- No patches to upstream code. When a construct doesn't compile or behaves
|
|
98
|
+
differently, fix the transpiler generally. The only exception is something
|
|
99
|
+
`conformance.md` marks 🚫, documented in `VENDOR.md` with the reason.
|
|
100
|
+
- Every fix gets a probe in `conformance/` (it runs under TypeNative with an
|
|
101
|
+
`assert` global) and a row in `conformance.md` (✅ with the probe link; ❌
|
|
102
|
+
rows for gaps you find but don't fix).
|
|
103
|
+
- The self-hosted compiler must keep working: `npm run build:native &&
|
|
104
|
+
npm run bootstrap:check`.
|
|
105
|
+
- Docs per round: a row in `examples/README.md`, a line in the root README's
|
|
106
|
+
Examples section, and a CHANGELOG entry under `[Unreleased]`.
|
|
107
|
+
- Commit trailer, and never put a model name in commits, PRs or code:
|
|
108
|
+
```
|
|
109
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
110
|
+
Claude-Session: https://claude.ai/code/session_012GsG7QUSC36HGJ9rohJ7A7
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Verification (run all of it before pushing)
|
|
114
|
+
|
|
115
|
+
1. `npm run build`
|
|
116
|
+
2. Compile the example: `node bin/cli.js --source examples/marked-cli/main.ts --output …`
|
|
117
|
+
3. `cd examples/marked-cli && node parity.mjs` must report 100%.
|
|
118
|
+
4. `node bench.mjs`
|
|
119
|
+
5. `npm run conformance:parallel`
|
|
120
|
+
6. `npm run build:native && npm run bootstrap:check`
|
|
121
|
+
7. `node scripts/conformance.mjs --native`
|
|
122
|
+
|
|
123
|
+
## Environment
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
export PATH=/opt/nvm/versions/node/v24.22.2/bin:$PATH
|
|
127
|
+
export GOTOOLCHAIN=go1.26.0
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Without these you get "TypeNative needs Go 1.26 or newer" or an old Node.
|
|
131
|
+
Timings in this container: conformance:parallel about 7 min,
|
|
132
|
+
`conformance --native` about 5 min, bootstrap:check about 75 s,
|
|
133
|
+
build:native about 3 min.
|
|
134
|
+
|
|
135
|
+
## Lessons from round 1 (read these; they will save hours)
|
|
136
|
+
|
|
137
|
+
**Working method**
|
|
138
|
+
|
|
139
|
+
- Write a small `tn.sh file.ts` that runs a snippet under Node and natively
|
|
140
|
+
and prints both. Most bugs reduce to five lines this way.
|
|
141
|
+
- `node bin/cli.js --source x.ts --emit-go DIR` writes the Go. Strip the
|
|
142
|
+
line directives with `sed 's#/\*line[^*]*\*/##g'` to read it.
|
|
143
|
+
- For a native panic, the recovered error loses the stack. Patch the
|
|
144
|
+
emitted Go's `TnCaught` to print `runtime/debug.Stack()`; import it under
|
|
145
|
+
an alias (`rtdbg`), since vendored code may already have a `debug`.
|
|
146
|
+
- Don't rebuild `bin/` while conformance runs: probes compile with it and
|
|
147
|
+
fail spuriously.
|
|
148
|
+
- Parity flakes are rare. If a parallel conformance job fails once but passes
|
|
149
|
+
alone (fs-watch timing, the big example build under load), rerun it alone
|
|
150
|
+
before chasing it.
|
|
151
|
+
|
|
152
|
+
**Self-hosting traps.** These cost the most time in round 1. The native
|
|
153
|
+
compiler (the transpiler compiled by itself) has known semantic gaps. Code
|
|
154
|
+
you add to `src/transpiler.ts` must avoid them, or `bootstrap:check` fails:
|
|
155
|
+
|
|
156
|
+
- `map.get(k)` on a missing key returns the zero value (`''`, `0`, `false`),
|
|
157
|
+
not `undefined`. So `m.get(k) ?? fallback` and `if (m.get(k) !== undefined)`
|
|
158
|
+
are wrong natively. Use `m.has(k) ? m.get(k) : undefined`. The same goes for
|
|
159
|
+
`Record` lookups (`Object.hasOwn(rec, k) ? rec[k] : undefined`) and for
|
|
160
|
+
`arr.find()`, which returns `''` for no match (use `filter()[0]` with a
|
|
161
|
+
length check).
|
|
162
|
+
- `bool || string` evaluates to a bool, not the string operand. Don't mix
|
|
163
|
+
types in `||` / `&&` value positions.
|
|
164
|
+
- A function returning `string | undefined` can yield `''` where JS yields
|
|
165
|
+
`undefined`; prefer `||` over `??` when `''` is never a valid value (Go
|
|
166
|
+
types never are).
|
|
167
|
+
- Object literals assigned into `any` slots become Go maps; those can now be
|
|
168
|
+
Map/Set keys (by identity), but don't rely on struct identity for them.
|
|
169
|
+
- To find a divergence: emit the same program's Go with both compilers
|
|
170
|
+
(`./native/typenative --emit-go` vs `node bin/cli.js --emit-go`) and diff
|
|
171
|
+
them, after stripping line directives. The first differing line usually
|
|
172
|
+
names the faulty inference rule.
|
|
173
|
+
- Helpers `untypedVariable()`, `declaredMemberType()` and
|
|
174
|
+
`getObjectFieldGoType()` already encode the `has()`-first pattern; reuse
|
|
175
|
+
them.
|
|
176
|
+
|
|
177
|
+
**Transpiler areas you'll likely touch for marked**
|
|
178
|
+
|
|
179
|
+
- Regexes: `TnRegex` (RE2, with a backtracking engine for lookarounds and
|
|
180
|
+
backreferences), sticky/global flags, `$` replacement patterns, replacer
|
|
181
|
+
callbacks (match, groups…, offset, input) and unmatched groups as
|
|
182
|
+
`undefined` all work now. `new RegExp(src, flags)` with `g`/`y` is
|
|
183
|
+
stateful. Composed regexes (`.source` edited with `.replace`) are new
|
|
184
|
+
territory.
|
|
185
|
+
- String positions are code points (UTF-16 units in the BMP), with a cached
|
|
186
|
+
index per long string. Long inputs scanned by regexes were quadratic until
|
|
187
|
+
round 1 fixed the cache eviction; watch for similar hotspots with a
|
|
188
|
+
profiler.
|
|
189
|
+
- Profiling: patch the emitted Go's `main()` to call
|
|
190
|
+
`pprof.StartCPUProfile` and `TnProcessExit` to stop it, then `go tool pprof
|
|
191
|
+
-top`. Round 1's wins were the string index cache, cached struct field
|
|
192
|
+
lookups, and resolving `typeof f` as a func type (direct calls instead of
|
|
193
|
+
reflection).
|
|
194
|
+
|
|
195
|
+
**Known gaps left open (❌ rows)**: a local alias of an array field doesn't
|
|
196
|
+
share pushes; an array read from an `any` object into a variable isn't
|
|
197
|
+
shared; `x?.m()` on an `any` value with a primitive result gives the zero
|
|
198
|
+
value instead of `undefined`; reading a missing `Record` / `Map` key of
|
|
199
|
+
primitives gives the zero value. Fix them if marked needs them, with
|
|
200
|
+
probes.
|
package/bin/cli.js
CHANGED
package/bin/go/bridge.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
// Kept in a plain style because this file is part of the self-hosted
|
|
8
8
|
// compiler and must transpile with TypeNative.
|
|
9
|
-
import { goPackage, goTypeInfo, allGoPaths } from './metadata.js';
|
|
9
|
+
import { goPackage, goTypeInfo, allGoPaths, bindQualifierPath } from './metadata.js';
|
|
10
10
|
import { toGo, fromGo, mustCall, checkCall, isGoNumericKind } from './convert.js';
|
|
11
11
|
import { isSyncCallback, isBlockingCall, goPathAliases } from './overrides.js';
|
|
12
12
|
let services = {
|
|
@@ -26,6 +26,14 @@ let services = {
|
|
|
26
26
|
};
|
|
27
27
|
export function bindBridgeServices(s) {
|
|
28
28
|
services = s;
|
|
29
|
+
bindQualifierPath(pathOfQualifier);
|
|
30
|
+
}
|
|
31
|
+
function pathOfQualifier(qualifier) {
|
|
32
|
+
for (const path of Object.keys(pathToLocal)) {
|
|
33
|
+
if (pathToLocal[path] === qualifier)
|
|
34
|
+
return path;
|
|
35
|
+
}
|
|
36
|
+
return '';
|
|
29
37
|
}
|
|
30
38
|
// Local import name → Go package path ('strings' → 'strings').
|
|
31
39
|
const localToPath = {};
|
|
@@ -182,6 +190,10 @@ function goBuiltinName(callee) {
|
|
|
182
190
|
export function isGoRefCall(node) {
|
|
183
191
|
return !!node && node.kind === 'CallExpression' && goBuiltinName(node.expression) === 'ref';
|
|
184
192
|
}
|
|
193
|
+
function chanElementType(node) {
|
|
194
|
+
const typeArg = (node.typeArguments ?? [])[0];
|
|
195
|
+
return typeArg ? services.goTypeOf(typeArg) : 'interface{}';
|
|
196
|
+
}
|
|
185
197
|
// go:builtin calls: ref<T>(init?) → new(T), chan<T>(size?) → make(chan T).
|
|
186
198
|
function visitGoBuiltinCall(node) {
|
|
187
199
|
const name = goBuiltinName(node.expression);
|
|
@@ -198,11 +210,12 @@ function visitGoBuiltinCall(node) {
|
|
|
198
210
|
}
|
|
199
211
|
if (name === 'chan') {
|
|
200
212
|
const size = (node.arguments ?? [])[0];
|
|
201
|
-
//
|
|
202
|
-
//
|
|
213
|
+
// The element type comes from chan<T>(); without one it is interface{}
|
|
214
|
+
// (callers annotate: const ch: GoChan<T> = chan()).
|
|
215
|
+
const goType = chanElementType(node);
|
|
203
216
|
if (size)
|
|
204
|
-
return `make(chan
|
|
205
|
-
return
|
|
217
|
+
return `make(chan ${goType}, int(${services.visit(size)}))`;
|
|
218
|
+
return `make(chan ${goType})`;
|
|
206
219
|
}
|
|
207
220
|
return undefined;
|
|
208
221
|
}
|
|
@@ -529,7 +542,12 @@ function goCallResults(node) {
|
|
|
529
542
|
// pumps pending loop tasks.
|
|
530
543
|
function emitBlocking(call, results, asStatement = false) {
|
|
531
544
|
services.helper('goBlocking');
|
|
532
|
-
|
|
545
|
+
if (results.length === 0)
|
|
546
|
+
return `tnGoBlocking(func() interface{} { ${call}; return nil })`;
|
|
547
|
+
// The results come back through named returns: void and multi-value calls fit too
|
|
548
|
+
const names = results.map((_, i) => `__r${i}`);
|
|
549
|
+
const decl = results.map((r, i) => `${names[i]} ${goLocalType(r)}`).join(', ');
|
|
550
|
+
const wrapped = `func() (${decl}) { tnGoBlocking(func() interface{} { ${names.join(', ')} = ${call}; return nil }); return }()`;
|
|
533
551
|
return emitResults(wrapped, results, asStatement);
|
|
534
552
|
}
|
|
535
553
|
function isFuncType(goType) {
|
|
@@ -568,21 +586,28 @@ function emitCallback(node, goType, path, funcName) {
|
|
|
568
586
|
services.declareLocal(name, tsType);
|
|
569
587
|
}
|
|
570
588
|
void isSyncCallback(path, funcName);
|
|
571
|
-
|
|
589
|
+
// (T, error): the TS closure returns T (a throw stays a panic)
|
|
590
|
+
const withError = sig.results.length === 2 && sig.results[1] === 'error';
|
|
591
|
+
const result = sig.results.length === 1 || withError ? sig.results[0] : '';
|
|
572
592
|
if (result) {
|
|
573
593
|
ensureGoTypePackages(result);
|
|
574
594
|
node.tnGoCallbackResult = result;
|
|
575
595
|
}
|
|
576
|
-
const
|
|
596
|
+
const localResults = sig.results.map((r) => goLocalType(r));
|
|
597
|
+
const resultDecl = localResults.length === 0 ? '' : localResults.length === 1 ? ` ${localResults[0]}` : ` (${localResults.join(', ')})`;
|
|
577
598
|
const head = `func(${params.join(', ')})${resultDecl}`;
|
|
578
599
|
const pre = prelude.length > 0 ? prelude.join('; ') + '; ' : '';
|
|
600
|
+
let inner = '';
|
|
579
601
|
if (node.body && node.body.kind === 'Block') {
|
|
580
|
-
|
|
602
|
+
inner = services.visit(node.body);
|
|
581
603
|
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
604
|
+
else {
|
|
605
|
+
const body = services.visit(node.body);
|
|
606
|
+
inner = result ? `return ${toGo(body, services.typeOf(node.body) ?? '', result)}` : body;
|
|
607
|
+
}
|
|
608
|
+
if (withError)
|
|
609
|
+
return `${head} { ${pre}return func() ${goLocalType(result)} { ${inner} }(), nil }`;
|
|
610
|
+
return `${head} { ${pre}${inner} }`;
|
|
586
611
|
}
|
|
587
612
|
// "name T" → "T" (metadata signatures keep parameter names).
|
|
588
613
|
function stripParamName(param) {
|
|
@@ -662,7 +687,7 @@ export function inferGoType(node) {
|
|
|
662
687
|
if (node && node.kind === 'CallExpression') {
|
|
663
688
|
const builtinName = goBuiltinName(node.expression);
|
|
664
689
|
if (builtinName === 'chan')
|
|
665
|
-
return
|
|
690
|
+
return `chan ${chanElementType(node)}`;
|
|
666
691
|
if (builtinName === 'ref') {
|
|
667
692
|
const typeArg = (node.typeArguments ?? [])[0];
|
|
668
693
|
const goType = typeArg ? services.goTypeOf(typeArg) : 'interface{}';
|
|
@@ -903,6 +928,41 @@ export function visitGoNew(node, path, typeName) {
|
|
|
903
928
|
const empty = `${qualifier}.${typeName}{}`;
|
|
904
929
|
return hasPtrReceiver(type) ? `(&${empty})` : empty;
|
|
905
930
|
}
|
|
931
|
+
// Go type of a TS annotation naming a bridged type (`dwarf.Data`, or a named
|
|
932
|
+
// import). A struct is a pointer when the package hands out *T, a value when
|
|
933
|
+
// it hands out T (time.Time), else whatever `new pkg.T()` builds.
|
|
934
|
+
export function goAnnotationType(path, typeName) {
|
|
935
|
+
const info = goPackage(path);
|
|
936
|
+
if (!info || !Object.hasOwn(info.types, typeName))
|
|
937
|
+
return undefined;
|
|
938
|
+
const type = info.types[typeName];
|
|
939
|
+
if (type.tparams.length > 0)
|
|
940
|
+
return undefined;
|
|
941
|
+
if (type.numeric)
|
|
942
|
+
return 'float64';
|
|
943
|
+
services.pkg(path);
|
|
944
|
+
ensureGoQualifier(path);
|
|
945
|
+
const local = `${goQualifier(path)}.${typeName}`;
|
|
946
|
+
if (type.kind !== 'struct')
|
|
947
|
+
return local;
|
|
948
|
+
const full = `${path}.${typeName}`;
|
|
949
|
+
const results = [];
|
|
950
|
+
for (const name of Object.keys(info.funcs)) {
|
|
951
|
+
for (const r of info.funcs[name].results)
|
|
952
|
+
results.push(r);
|
|
953
|
+
}
|
|
954
|
+
for (const name of Object.keys(info.types)) {
|
|
955
|
+
for (const m of info.types[name].methods) {
|
|
956
|
+
for (const r of m.results)
|
|
957
|
+
results.push(r);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
if (results.includes(`*${full}`))
|
|
961
|
+
return `*${local}`;
|
|
962
|
+
if (results.includes(full))
|
|
963
|
+
return local;
|
|
964
|
+
return hasPtrReceiver(type) ? `*${local}` : local;
|
|
965
|
+
}
|
|
906
966
|
function fieldGoTypeOf(type, field) {
|
|
907
967
|
for (const f of type.fields) {
|
|
908
968
|
if (f.name === field)
|
package/bin/go/convert.js
CHANGED
|
@@ -140,6 +140,15 @@ export function toGo(expr, fromType, toType) {
|
|
|
140
140
|
}
|
|
141
141
|
return `func() ${convertServices.localType(toType)} { __v := ${expr}; return __v[:] }()`;
|
|
142
142
|
}
|
|
143
|
+
// TS records / Maps (*TnMap[K, V]) into Go maps of the same key and value types
|
|
144
|
+
if (sameMapTypes(fromType, toType)) {
|
|
145
|
+
convertServices.helper('goMaps');
|
|
146
|
+
return `tnGoMap(${expr})`;
|
|
147
|
+
}
|
|
148
|
+
if (fromType.startsWith('[]') && toType.startsWith('[]') && sameMapTypes(fromType.slice(2), toType.slice(2))) {
|
|
149
|
+
convertServices.helper('goMaps');
|
|
150
|
+
return `tnGoMaps(${expr})`;
|
|
151
|
+
}
|
|
143
152
|
// Slices of numbers: tnGoNums[T](x) / element conversion.
|
|
144
153
|
// []byte ↔ []byte passes through (Uint8Array needs no conversion).
|
|
145
154
|
if (toType.startsWith('[]') && fromType.startsWith('[]')) {
|
|
@@ -187,6 +196,45 @@ export function toGo(expr, fromType, toType) {
|
|
|
187
196
|
}
|
|
188
197
|
return expr;
|
|
189
198
|
}
|
|
199
|
+
// Whether fromType is *TnMap[K, V] and toType is map[K]V (any = interface{}).
|
|
200
|
+
function sameMapTypes(fromType, toType) {
|
|
201
|
+
if (!fromType.startsWith('*TnMap[') || !fromType.endsWith(']') || !toType.startsWith('map['))
|
|
202
|
+
return false;
|
|
203
|
+
const tnArgs = splitTopLevelTypes(fromType.slice(7, -1));
|
|
204
|
+
let depth = 0;
|
|
205
|
+
let close = -1;
|
|
206
|
+
for (let i = 3; i < toType.length && close < 0; i++) {
|
|
207
|
+
if (toType[i] === '[')
|
|
208
|
+
depth++;
|
|
209
|
+
else if (toType[i] === ']') {
|
|
210
|
+
depth--;
|
|
211
|
+
if (depth === 0)
|
|
212
|
+
close = i;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (tnArgs.length !== 2 || close < 0)
|
|
216
|
+
return false;
|
|
217
|
+
const norm = (t) => (t.trim() === 'any' ? 'interface{}' : t.trim());
|
|
218
|
+
return norm(tnArgs[0]) === norm(toType.slice(4, close)) && norm(tnArgs[1]) === norm(toType.slice(close + 1));
|
|
219
|
+
}
|
|
220
|
+
function splitTopLevelTypes(s) {
|
|
221
|
+
const out = [];
|
|
222
|
+
let depth = 0;
|
|
223
|
+
let start = 0;
|
|
224
|
+
for (let i = 0; i < s.length; i++) {
|
|
225
|
+
const ch = s[i];
|
|
226
|
+
if (ch === '[' || ch === '(' || ch === '{')
|
|
227
|
+
depth++;
|
|
228
|
+
else if (ch === ']' || ch === ')' || ch === '}')
|
|
229
|
+
depth--;
|
|
230
|
+
else if (ch === ',' && depth === 0) {
|
|
231
|
+
out.push(s.slice(start, i));
|
|
232
|
+
start = i + 1;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
out.push(s.slice(start));
|
|
236
|
+
return out;
|
|
237
|
+
}
|
|
190
238
|
// Convert a Go expression back to a TS-facing value.
|
|
191
239
|
export function fromGo(expr, goType) {
|
|
192
240
|
if (!goType)
|
package/bin/go/metadata.js
CHANGED
|
@@ -72,11 +72,12 @@ function parseResults(s) {
|
|
|
72
72
|
export function goPackage(path) {
|
|
73
73
|
if (path in packageCache)
|
|
74
74
|
return packageCache[path];
|
|
75
|
-
|
|
76
|
-
if (
|
|
75
|
+
// `in`, not `=== undefined`: natively a missing key reads as ''
|
|
76
|
+
if (!(path in goStdlib)) {
|
|
77
77
|
packageCache[path] = null;
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
+
const raw = goStdlib[path];
|
|
80
81
|
const info = { path, name: path, funcs: {}, types: {}, consts: {}, vars: {} };
|
|
81
82
|
for (const line of raw.split('\n')) {
|
|
82
83
|
if (!line)
|
|
@@ -161,12 +162,18 @@ export function goPackage(path) {
|
|
|
161
162
|
}
|
|
162
163
|
// Whether a package path has bridge metadata.
|
|
163
164
|
export function hasGoPackage(path) {
|
|
164
|
-
return
|
|
165
|
+
return path in goStdlib;
|
|
165
166
|
}
|
|
166
167
|
// All known package paths (for resolving cross-package type references).
|
|
167
168
|
export function allGoPaths() {
|
|
168
169
|
return Object.keys(goStdlib);
|
|
169
170
|
}
|
|
171
|
+
// Package path of an emitted qualifier ('dwarf' → 'debug/dwarf'), bound by
|
|
172
|
+
// the bridge: annotated types (`let d: dwarf.Data`) carry the local form.
|
|
173
|
+
let qualifierPath = (_qualifier) => '';
|
|
174
|
+
export function bindQualifierPath(fn) {
|
|
175
|
+
qualifierPath = fn;
|
|
176
|
+
}
|
|
170
177
|
// Resolve a qualified Go type to its type info.
|
|
171
178
|
export function goTypeInfo(goType) {
|
|
172
179
|
let base = goType;
|
|
@@ -175,11 +182,13 @@ export function goTypeInfo(goType) {
|
|
|
175
182
|
const dot = base.lastIndexOf('.');
|
|
176
183
|
if (dot < 0)
|
|
177
184
|
return null;
|
|
178
|
-
|
|
185
|
+
let path = base.slice(0, dot);
|
|
179
186
|
let name = base.slice(dot + 1);
|
|
180
187
|
const bracket = name.indexOf('[');
|
|
181
188
|
if (bracket >= 0)
|
|
182
189
|
name = name.slice(0, bracket);
|
|
190
|
+
if (!hasGoPackage(path) && qualifierPath(path) !== '')
|
|
191
|
+
path = qualifierPath(path);
|
|
183
192
|
const info = goPackage(path);
|
|
184
193
|
if (!info)
|
|
185
194
|
return null;
|
package/bin/go/overrides.js
CHANGED
|
@@ -49,12 +49,10 @@ export const goPathAliases = {
|
|
|
49
49
|
'github.com/ncruces/go-sqlite3': 'sqlite3'
|
|
50
50
|
};
|
|
51
51
|
export const goExcluded = {
|
|
52
|
-
plugin: 'cgo
|
|
53
|
-
unsafe: '
|
|
54
|
-
'runtime/race': '
|
|
55
|
-
'runtime/
|
|
56
|
-
'runtime/cgo': 'needs cgo',
|
|
57
|
-
embed: 'needs a `//go:embed` directive; a later phase'
|
|
52
|
+
plugin: 'Loads plugins with `dlopen`: needs cgo and `-buildmode=plugin` (no Windows support)',
|
|
53
|
+
unsafe: 'Raw pointer arithmetic and memory reinterpretation; TS values have no addresses',
|
|
54
|
+
'runtime/race': 'No public API: the race detector is a build mode (`-race`) that needs cgo',
|
|
55
|
+
'runtime/cgo': 'Links only with cgo and a C toolchain; `Handle` exists to pass Go values to C'
|
|
58
56
|
};
|
|
59
57
|
// Whether a call taking a callback invokes it synchronously.
|
|
60
58
|
export function isSyncCallback(pkgPath, funcName) {
|
|
@@ -53,6 +53,7 @@ export const goStdlib = {
|
|
|
53
53
|
"debug/macho": "Pmacho\nFNewFatFile||r io.ReaderAt|*debug/macho.FatFile,error|false|\nFNewFile||r io.ReaderAt|*debug/macho.File,error|false|\nFOpen||name string|*debug/macho.File,error|false|\nFOpenFat||name string|*debug/macho.FatFile,error|false|\nTCpu|basic|uint32||true\nMCpu|GoString|false||string\nMCpu|String|false||string\nTDylib|struct|struct{debug/macho.LoadBytes; Name string; Time uint32; CurrentVersion uint32; CompatVersion uint32}||false\nfDylib|LoadBytes|debug/macho.LoadBytes\nfDylib|Name|string\nfDylib|Time|uint32\nfDylib|CurrentVersion|uint32\nfDylib|CompatVersion|uint32\nMDylib|Raw|false||[]byte\nTDylibCmd|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Name uint32; Time uint32; CurrentVersion uint32; CompatVersion uint32}||false\nfDylibCmd|Cmd|debug/macho.LoadCmd\nfDylibCmd|Len|uint32\nfDylibCmd|Name|uint32\nfDylibCmd|Time|uint32\nfDylibCmd|CurrentVersion|uint32\nfDylibCmd|CompatVersion|uint32\nTDysymtab|struct|struct{debug/macho.LoadBytes; debug/macho.DysymtabCmd; IndirectSyms []uint32}||false\nfDysymtab|LoadBytes|debug/macho.LoadBytes\nfDysymtab|DysymtabCmd|debug/macho.DysymtabCmd\nfDysymtab|IndirectSyms|[]uint32\nfDysymtab|Cmd|debug/macho.LoadCmd\nfDysymtab|Len|uint32\nfDysymtab|Ilocalsym|uint32\nfDysymtab|Nlocalsym|uint32\nfDysymtab|Iextdefsym|uint32\nfDysymtab|Nextdefsym|uint32\nfDysymtab|Iundefsym|uint32\nfDysymtab|Nundefsym|uint32\nfDysymtab|Tocoffset|uint32\nfDysymtab|Ntoc|uint32\nfDysymtab|Modtaboff|uint32\nfDysymtab|Nmodtab|uint32\nfDysymtab|Extrefsymoff|uint32\nfDysymtab|Nextrefsyms|uint32\nfDysymtab|Indirectsymoff|uint32\nfDysymtab|Nindirectsyms|uint32\nfDysymtab|Extreloff|uint32\nfDysymtab|Nextrel|uint32\nfDysymtab|Locreloff|uint32\nfDysymtab|Nlocrel|uint32\nMDysymtab|Raw|false||[]byte\nTDysymtabCmd|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Ilocalsym uint32; Nlocalsym uint32; Iextdefsym uint32; Nextdefsym uint32; Iundefsym uint32; Nundefsym uint32; Tocoffset uint32; Ntoc uint32; Modtaboff uint32; Nmodtab uint32; Extrefsymoff uint32; Nextrefsyms uint32; Indirectsymoff uint32; Nindirectsyms uint32; Extreloff uint32; Nextrel uint32; Locreloff uint32; Nlocrel uint32}||false\nfDysymtabCmd|Cmd|debug/macho.LoadCmd\nfDysymtabCmd|Len|uint32\nfDysymtabCmd|Ilocalsym|uint32\nfDysymtabCmd|Nlocalsym|uint32\nfDysymtabCmd|Iextdefsym|uint32\nfDysymtabCmd|Nextdefsym|uint32\nfDysymtabCmd|Iundefsym|uint32\nfDysymtabCmd|Nundefsym|uint32\nfDysymtabCmd|Tocoffset|uint32\nfDysymtabCmd|Ntoc|uint32\nfDysymtabCmd|Modtaboff|uint32\nfDysymtabCmd|Nmodtab|uint32\nfDysymtabCmd|Extrefsymoff|uint32\nfDysymtabCmd|Nextrefsyms|uint32\nfDysymtabCmd|Indirectsymoff|uint32\nfDysymtabCmd|Nindirectsyms|uint32\nfDysymtabCmd|Extreloff|uint32\nfDysymtabCmd|Nextrel|uint32\nfDysymtabCmd|Locreloff|uint32\nfDysymtabCmd|Nlocrel|uint32\nTFatArch|struct|struct{debug/macho.FatArchHeader; *debug/macho.File}||false\nfFatArch|FatArchHeader|debug/macho.FatArchHeader\nfFatArch|File|*debug/macho.File\nfFatArch|Cpu|debug/macho.Cpu\nfFatArch|SubCpu|uint32\nfFatArch|Offset|uint32\nfFatArch|Size|uint32\nfFatArch|Align|uint32\nfFatArch|FileHeader|debug/macho.FileHeader\nfFatArch|ByteOrder|encoding/binary.ByteOrder\nfFatArch|Loads|[]debug/macho.Load\nfFatArch|Sections|[]*debug/macho.Section\nfFatArch|Symtab|*debug/macho.Symtab\nfFatArch|Dysymtab|*debug/macho.Dysymtab\nMFatArch|Close|false||error\nMFatArch|DWARF|false||*debug/dwarf.Data,error\nMFatArch|ImportedLibraries|false||[]string,error\nMFatArch|ImportedSymbols|false||[]string,error\nMFatArch|Section|false|name string|*debug/macho.Section\nMFatArch|Segment|false|name string|*debug/macho.Segment\nTFatArchHeader|struct|struct{Cpu debug/macho.Cpu; SubCpu uint32; Offset uint32; Size uint32; Align uint32}||false\nfFatArchHeader|Cpu|debug/macho.Cpu\nfFatArchHeader|SubCpu|uint32\nfFatArchHeader|Offset|uint32\nfFatArchHeader|Size|uint32\nfFatArchHeader|Align|uint32\nTFatFile|struct|struct{Magic uint32; Arches []debug/macho.FatArch; closer io.Closer}||false\nfFatFile|Magic|uint32\nfFatFile|Arches|[]debug/macho.FatArch\nMFatFile|Close|true||error\nTFile|struct|struct{debug/macho.FileHeader; ByteOrder encoding/binary.ByteOrder; Loads []debug/macho.Load; Sections []*debug/macho.Section; Symtab *debug/macho.Symtab; Dysymtab *debug/macho.Dysymtab; closer io.Closer}||false\nfFile|FileHeader|debug/macho.FileHeader\nfFile|ByteOrder|encoding/binary.ByteOrder\nfFile|Loads|[]debug/macho.Load\nfFile|Sections|[]*debug/macho.Section\nfFile|Symtab|*debug/macho.Symtab\nfFile|Dysymtab|*debug/macho.Dysymtab\nfFile|Magic|uint32\nfFile|Cpu|debug/macho.Cpu\nfFile|SubCpu|uint32\nfFile|Type|debug/macho.Type\nfFile|Ncmd|uint32\nfFile|Cmdsz|uint32\nfFile|Flags|uint32\nMFile|Close|true||error\nMFile|DWARF|true||*debug/dwarf.Data,error\nMFile|ImportedLibraries|true||[]string,error\nMFile|ImportedSymbols|true||[]string,error\nMFile|Section|true|name string|*debug/macho.Section\nMFile|Segment|true|name string|*debug/macho.Segment\nTFileHeader|struct|struct{Magic uint32; Cpu debug/macho.Cpu; SubCpu uint32; Type debug/macho.Type; Ncmd uint32; Cmdsz uint32; Flags uint32}||false\nfFileHeader|Magic|uint32\nfFileHeader|Cpu|debug/macho.Cpu\nfFileHeader|SubCpu|uint32\nfFileHeader|Type|debug/macho.Type\nfFileHeader|Ncmd|uint32\nfFileHeader|Cmdsz|uint32\nfFileHeader|Flags|uint32\nTFormatError|struct|struct{off int64; msg string; val any}||false\nMFormatError|Error|true||string\nTLoad|interface|interface{Raw() []byte}||false\nMLoad|Raw|false||[]byte\nILoad|Raw||[]byte\nTLoadBytes|slice|[]byte||false\nMLoadBytes|Raw|false||[]byte\nTLoadCmd|basic|uint32||true\nMLoadCmd|GoString|false||string\nMLoadCmd|String|false||string\nTNlist32|struct|struct{Name uint32; Type uint8; Sect uint8; Desc uint16; Value uint32}||false\nfNlist32|Name|uint32\nfNlist32|Type|uint8\nfNlist32|Sect|uint8\nfNlist32|Desc|uint16\nfNlist32|Value|uint32\nTNlist64|struct|struct{Name uint32; Type uint8; Sect uint8; Desc uint16; Value uint64}||false\nfNlist64|Name|uint32\nfNlist64|Type|uint8\nfNlist64|Sect|uint8\nfNlist64|Desc|uint16\nfNlist64|Value|uint64\nTRegs386|struct|struct{AX uint32; BX uint32; CX uint32; DX uint32; DI uint32; SI uint32; BP uint32; SP uint32; SS uint32; FLAGS uint32; IP uint32; CS uint32; DS uint32; ES uint32; FS uint32; GS uint32}||false\nfRegs386|AX|uint32\nfRegs386|BX|uint32\nfRegs386|CX|uint32\nfRegs386|DX|uint32\nfRegs386|DI|uint32\nfRegs386|SI|uint32\nfRegs386|BP|uint32\nfRegs386|SP|uint32\nfRegs386|SS|uint32\nfRegs386|FLAGS|uint32\nfRegs386|IP|uint32\nfRegs386|CS|uint32\nfRegs386|DS|uint32\nfRegs386|ES|uint32\nfRegs386|FS|uint32\nfRegs386|GS|uint32\nTRegsAMD64|struct|struct{AX uint64; BX uint64; CX uint64; DX uint64; DI uint64; SI uint64; BP uint64; SP uint64; R8 uint64; R9 uint64; R10 uint64; R11 uint64; R12 uint64; R13 uint64; R14 uint64; R15 uint64; IP uint64; FLAGS uint64; CS uint64; FS uint64; GS uint64}||false\nfRegsAMD64|AX|uint64\nfRegsAMD64|BX|uint64\nfRegsAMD64|CX|uint64\nfRegsAMD64|DX|uint64\nfRegsAMD64|DI|uint64\nfRegsAMD64|SI|uint64\nfRegsAMD64|BP|uint64\nfRegsAMD64|SP|uint64\nfRegsAMD64|R8|uint64\nfRegsAMD64|R9|uint64\nfRegsAMD64|R10|uint64\nfRegsAMD64|R11|uint64\nfRegsAMD64|R12|uint64\nfRegsAMD64|R13|uint64\nfRegsAMD64|R14|uint64\nfRegsAMD64|R15|uint64\nfRegsAMD64|IP|uint64\nfRegsAMD64|FLAGS|uint64\nfRegsAMD64|CS|uint64\nfRegsAMD64|FS|uint64\nfRegsAMD64|GS|uint64\nTReloc|struct|struct{Addr uint32; Value uint32; Type uint8; Len uint8; Pcrel bool; Extern bool; Scattered bool}||false\nfReloc|Addr|uint32\nfReloc|Value|uint32\nfReloc|Type|uint8\nfReloc|Len|uint8\nfReloc|Pcrel|bool\nfReloc|Extern|bool\nfReloc|Scattered|bool\nTRelocTypeARM|basic|int||true\nMRelocTypeARM|GoString|false||string\nMRelocTypeARM|String|false||string\nTRelocTypeARM64|basic|int||true\nMRelocTypeARM64|GoString|false||string\nMRelocTypeARM64|String|false||string\nTRelocTypeGeneric|basic|int||true\nMRelocTypeGeneric|GoString|false||string\nMRelocTypeGeneric|String|false||string\nTRelocTypeX86_64|basic|int||true\nMRelocTypeX86_64|GoString|false||string\nMRelocTypeX86_64|String|false||string\nTRpath|struct|struct{debug/macho.LoadBytes; Path string}||false\nfRpath|LoadBytes|debug/macho.LoadBytes\nfRpath|Path|string\nMRpath|Raw|false||[]byte\nTRpathCmd|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Path uint32}||false\nfRpathCmd|Cmd|debug/macho.LoadCmd\nfRpathCmd|Len|uint32\nfRpathCmd|Path|uint32\nTSection|struct|struct{debug/macho.SectionHeader; Relocs []debug/macho.Reloc; io.ReaderAt; sr *io.SectionReader}||false\nfSection|SectionHeader|debug/macho.SectionHeader\nfSection|Relocs|[]debug/macho.Reloc\nfSection|ReaderAt|io.ReaderAt\nfSection|Name|string\nfSection|Seg|string\nfSection|Addr|uint64\nfSection|Size|uint64\nfSection|Offset|uint32\nfSection|Align|uint32\nfSection|Reloff|uint32\nfSection|Nreloc|uint32\nfSection|Flags|uint32\nMSection|Data|true||[]byte,error\nMSection|Open|true||io.ReadSeeker\nMSection|ReadAt|false|p []byte,off int64|int,error\nTSection32|struct|struct{Name [16]byte; Seg [16]byte; Addr uint32; Size uint32; Offset uint32; Align uint32; Reloff uint32; Nreloc uint32; Flags uint32; Reserve1 uint32; Reserve2 uint32}||false\nfSection32|Name|[16]byte\nfSection32|Seg|[16]byte\nfSection32|Addr|uint32\nfSection32|Size|uint32\nfSection32|Offset|uint32\nfSection32|Align|uint32\nfSection32|Reloff|uint32\nfSection32|Nreloc|uint32\nfSection32|Flags|uint32\nfSection32|Reserve1|uint32\nfSection32|Reserve2|uint32\nTSection64|struct|struct{Name [16]byte; Seg [16]byte; Addr uint64; Size uint64; Offset uint32; Align uint32; Reloff uint32; Nreloc uint32; Flags uint32; Reserve1 uint32; Reserve2 uint32; Reserve3 uint32}||false\nfSection64|Name|[16]byte\nfSection64|Seg|[16]byte\nfSection64|Addr|uint64\nfSection64|Size|uint64\nfSection64|Offset|uint32\nfSection64|Align|uint32\nfSection64|Reloff|uint32\nfSection64|Nreloc|uint32\nfSection64|Flags|uint32\nfSection64|Reserve1|uint32\nfSection64|Reserve2|uint32\nfSection64|Reserve3|uint32\nTSectionHeader|struct|struct{Name string; Seg string; Addr uint64; Size uint64; Offset uint32; Align uint32; Reloff uint32; Nreloc uint32; Flags uint32}||false\nfSectionHeader|Name|string\nfSectionHeader|Seg|string\nfSectionHeader|Addr|uint64\nfSectionHeader|Size|uint64\nfSectionHeader|Offset|uint32\nfSectionHeader|Align|uint32\nfSectionHeader|Reloff|uint32\nfSectionHeader|Nreloc|uint32\nfSectionHeader|Flags|uint32\nTSegment|struct|struct{debug/macho.LoadBytes; debug/macho.SegmentHeader; io.ReaderAt; sr *io.SectionReader}||false\nfSegment|LoadBytes|debug/macho.LoadBytes\nfSegment|SegmentHeader|debug/macho.SegmentHeader\nfSegment|ReaderAt|io.ReaderAt\nfSegment|Cmd|debug/macho.LoadCmd\nfSegment|Len|uint32\nfSegment|Name|string\nfSegment|Addr|uint64\nfSegment|Memsz|uint64\nfSegment|Offset|uint64\nfSegment|Filesz|uint64\nfSegment|Maxprot|uint32\nfSegment|Prot|uint32\nfSegment|Nsect|uint32\nfSegment|Flag|uint32\nMSegment|Data|true||[]byte,error\nMSegment|Open|true||io.ReadSeeker\nMSegment|Raw|false||[]byte\nMSegment|ReadAt|false|p []byte,off int64|int,error\nTSegment32|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Name [16]byte; Addr uint32; Memsz uint32; Offset uint32; Filesz uint32; Maxprot uint32; Prot uint32; Nsect uint32; Flag uint32}||false\nfSegment32|Cmd|debug/macho.LoadCmd\nfSegment32|Len|uint32\nfSegment32|Name|[16]byte\nfSegment32|Addr|uint32\nfSegment32|Memsz|uint32\nfSegment32|Offset|uint32\nfSegment32|Filesz|uint32\nfSegment32|Maxprot|uint32\nfSegment32|Prot|uint32\nfSegment32|Nsect|uint32\nfSegment32|Flag|uint32\nTSegment64|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Name [16]byte; Addr uint64; Memsz uint64; Offset uint64; Filesz uint64; Maxprot uint32; Prot uint32; Nsect uint32; Flag uint32}||false\nfSegment64|Cmd|debug/macho.LoadCmd\nfSegment64|Len|uint32\nfSegment64|Name|[16]byte\nfSegment64|Addr|uint64\nfSegment64|Memsz|uint64\nfSegment64|Offset|uint64\nfSegment64|Filesz|uint64\nfSegment64|Maxprot|uint32\nfSegment64|Prot|uint32\nfSegment64|Nsect|uint32\nfSegment64|Flag|uint32\nTSegmentHeader|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Name string; Addr uint64; Memsz uint64; Offset uint64; Filesz uint64; Maxprot uint32; Prot uint32; Nsect uint32; Flag uint32}||false\nfSegmentHeader|Cmd|debug/macho.LoadCmd\nfSegmentHeader|Len|uint32\nfSegmentHeader|Name|string\nfSegmentHeader|Addr|uint64\nfSegmentHeader|Memsz|uint64\nfSegmentHeader|Offset|uint64\nfSegmentHeader|Filesz|uint64\nfSegmentHeader|Maxprot|uint32\nfSegmentHeader|Prot|uint32\nfSegmentHeader|Nsect|uint32\nfSegmentHeader|Flag|uint32\nTSymbol|struct|struct{Name string; Type uint8; Sect uint8; Desc uint16; Value uint64}||false\nfSymbol|Name|string\nfSymbol|Type|uint8\nfSymbol|Sect|uint8\nfSymbol|Desc|uint16\nfSymbol|Value|uint64\nTSymtab|struct|struct{debug/macho.LoadBytes; debug/macho.SymtabCmd; Syms []debug/macho.Symbol}||false\nfSymtab|LoadBytes|debug/macho.LoadBytes\nfSymtab|SymtabCmd|debug/macho.SymtabCmd\nfSymtab|Syms|[]debug/macho.Symbol\nfSymtab|Cmd|debug/macho.LoadCmd\nfSymtab|Len|uint32\nfSymtab|Symoff|uint32\nfSymtab|Nsyms|uint32\nfSymtab|Stroff|uint32\nfSymtab|Strsize|uint32\nMSymtab|Raw|false||[]byte\nTSymtabCmd|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Symoff uint32; Nsyms uint32; Stroff uint32; Strsize uint32}||false\nfSymtabCmd|Cmd|debug/macho.LoadCmd\nfSymtabCmd|Len|uint32\nfSymtabCmd|Symoff|uint32\nfSymtabCmd|Nsyms|uint32\nfSymtabCmd|Stroff|uint32\nfSymtabCmd|Strsize|uint32\nTThread|struct|struct{Cmd debug/macho.LoadCmd; Len uint32; Type uint32; Data []uint32}||false\nfThread|Cmd|debug/macho.LoadCmd\nfThread|Len|uint32\nfThread|Type|uint32\nfThread|Data|[]uint32\nTType|basic|uint32||true\nMType|GoString|false||string\nMType|String|false||string\nCARM64_RELOC_ADDEND|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_BRANCH26|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_GOT_LOAD_PAGE21|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_GOT_LOAD_PAGEOFF12|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_PAGE21|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_PAGEOFF12|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_POINTER_TO_GOT|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_SUBTRACTOR|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_TLVP_LOAD_PAGE21|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_TLVP_LOAD_PAGEOFF12|typed|debug/macho.RelocTypeARM64\nCARM64_RELOC_UNSIGNED|typed|debug/macho.RelocTypeARM64\nCARM_RELOC_BR24|typed|debug/macho.RelocTypeARM\nCARM_RELOC_HALF|typed|debug/macho.RelocTypeARM\nCARM_RELOC_HALF_SECTDIFF|typed|debug/macho.RelocTypeARM\nCARM_RELOC_LOCAL_SECTDIFF|typed|debug/macho.RelocTypeARM\nCARM_RELOC_PAIR|typed|debug/macho.RelocTypeARM\nCARM_RELOC_PB_LA_PTR|typed|debug/macho.RelocTypeARM\nCARM_RELOC_SECTDIFF|typed|debug/macho.RelocTypeARM\nCARM_RELOC_VANILLA|typed|debug/macho.RelocTypeARM\nCARM_THUMB_32BIT_BRANCH|typed|debug/macho.RelocTypeARM\nCARM_THUMB_RELOC_BR22|typed|debug/macho.RelocTypeARM\nCCpu386|typed|debug/macho.Cpu\nCCpuAmd64|typed|debug/macho.Cpu\nCCpuArm|typed|debug/macho.Cpu\nCCpuArm64|typed|debug/macho.Cpu\nCCpuPpc|typed|debug/macho.Cpu\nCCpuPpc64|typed|debug/macho.Cpu\nCFlagAllModsBound|int|uint32\nCFlagAllowStackExecution|int|uint32\nCFlagAppExtensionSafe|int|uint32\nCFlagBindAtLoad|int|uint32\nCFlagBindsToWeak|int|uint32\nCFlagCanonical|int|uint32\nCFlagDeadStrippableDylib|int|uint32\nCFlagDyldLink|int|uint32\nCFlagForceFlat|int|uint32\nCFlagHasTLVDescriptors|int|uint32\nCFlagIncrLink|int|uint32\nCFlagLazyInit|int|uint32\nCFlagNoFixPrebinding|int|uint32\nCFlagNoHeapExecution|int|uint32\nCFlagNoMultiDefs|int|uint32\nCFlagNoReexportedDylibs|int|uint32\nCFlagNoUndefs|int|uint32\nCFlagPIE|int|uint32\nCFlagPrebindable|int|uint32\nCFlagPrebound|int|uint32\nCFlagRootSafe|int|uint32\nCFlagSetuidSafe|int|uint32\nCFlagSplitSegs|int|uint32\nCFlagSubsectionsViaSymbols|int|uint32\nCFlagTwoLevel|int|uint32\nCFlagWeakDefines|int|uint32\nCGENERIC_RELOC_LOCAL_SECTDIFF|typed|debug/macho.RelocTypeGeneric\nCGENERIC_RELOC_PAIR|typed|debug/macho.RelocTypeGeneric\nCGENERIC_RELOC_PB_LA_PTR|typed|debug/macho.RelocTypeGeneric\nCGENERIC_RELOC_SECTDIFF|typed|debug/macho.RelocTypeGeneric\nCGENERIC_RELOC_TLV|typed|debug/macho.RelocTypeGeneric\nCGENERIC_RELOC_VANILLA|typed|debug/macho.RelocTypeGeneric\nCLoadCmdDylib|typed|debug/macho.LoadCmd\nCLoadCmdDylinker|typed|debug/macho.LoadCmd\nCLoadCmdDysymtab|typed|debug/macho.LoadCmd\nCLoadCmdRpath|typed|debug/macho.LoadCmd\nCLoadCmdSegment|typed|debug/macho.LoadCmd\nCLoadCmdSegment64|typed|debug/macho.LoadCmd\nCLoadCmdSymtab|typed|debug/macho.LoadCmd\nCLoadCmdThread|typed|debug/macho.LoadCmd\nCLoadCmdUnixThread|typed|debug/macho.LoadCmd\nCMagic32|int|uint32\nCMagic64|int|uint32\nCMagicFat|int|uint32\nCTypeBundle|typed|debug/macho.Type\nCTypeDylib|typed|debug/macho.Type\nCTypeExec|typed|debug/macho.Type\nCTypeObj|typed|debug/macho.Type\nCX86_64_RELOC_BRANCH|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_GOT|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_GOT_LOAD|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_SIGNED|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_SIGNED_1|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_SIGNED_2|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_SIGNED_4|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_SUBTRACTOR|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_TLV|typed|debug/macho.RelocTypeX86_64\nCX86_64_RELOC_UNSIGNED|typed|debug/macho.RelocTypeX86_64\nVErrNotFat|*debug/macho.FormatError",
|
|
54
54
|
"debug/pe": "Ppe\nFNewFile||r io.ReaderAt|*debug/pe.File,error|false|\nFOpen||name string|*debug/pe.File,error|false|\nTCOFFSymbol|struct|struct{Name [8]uint8; Value uint32; SectionNumber int16; Type uint16; StorageClass uint8; NumberOfAuxSymbols uint8}||false\nfCOFFSymbol|Name|[8]uint8\nfCOFFSymbol|Value|uint32\nfCOFFSymbol|SectionNumber|int16\nfCOFFSymbol|Type|uint16\nfCOFFSymbol|StorageClass|uint8\nfCOFFSymbol|NumberOfAuxSymbols|uint8\nMCOFFSymbol|FullName|true|st debug/pe.StringTable|string,error\nTCOFFSymbolAuxFormat5|struct|struct{Size uint32; NumRelocs uint16; NumLineNumbers uint16; Checksum uint32; SecNum uint16; Selection uint8; _ [3]uint8}||false\nfCOFFSymbolAuxFormat5|Size|uint32\nfCOFFSymbolAuxFormat5|NumRelocs|uint16\nfCOFFSymbolAuxFormat5|NumLineNumbers|uint16\nfCOFFSymbolAuxFormat5|Checksum|uint32\nfCOFFSymbolAuxFormat5|SecNum|uint16\nfCOFFSymbolAuxFormat5|Selection|uint8\nTDataDirectory|struct|struct{VirtualAddress uint32; Size uint32}||false\nfDataDirectory|VirtualAddress|uint32\nfDataDirectory|Size|uint32\nTFile|struct|struct{debug/pe.FileHeader; OptionalHeader any; Sections []*debug/pe.Section; Symbols []*debug/pe.Symbol; COFFSymbols []debug/pe.COFFSymbol; StringTable debug/pe.StringTable; closer io.Closer}||false\nfFile|FileHeader|debug/pe.FileHeader\nfFile|OptionalHeader|any\nfFile|Sections|[]*debug/pe.Section\nfFile|Symbols|[]*debug/pe.Symbol\nfFile|COFFSymbols|[]debug/pe.COFFSymbol\nfFile|StringTable|debug/pe.StringTable\nfFile|Machine|uint16\nfFile|NumberOfSections|uint16\nfFile|TimeDateStamp|uint32\nfFile|PointerToSymbolTable|uint32\nfFile|NumberOfSymbols|uint32\nfFile|SizeOfOptionalHeader|uint16\nfFile|Characteristics|uint16\nMFile|COFFSymbolReadSectionDefAux|true|idx int|*debug/pe.COFFSymbolAuxFormat5,error\nMFile|Close|true||error\nMFile|DWARF|true||*debug/dwarf.Data,error\nMFile|ImportedLibraries|true||[]string,error\nMFile|ImportedSymbols|true||[]string,error\nMFile|Section|true|name string|*debug/pe.Section\nTFileHeader|struct|struct{Machine uint16; NumberOfSections uint16; TimeDateStamp uint32; PointerToSymbolTable uint32; NumberOfSymbols uint32; SizeOfOptionalHeader uint16; Characteristics uint16}||false\nfFileHeader|Machine|uint16\nfFileHeader|NumberOfSections|uint16\nfFileHeader|TimeDateStamp|uint32\nfFileHeader|PointerToSymbolTable|uint32\nfFileHeader|NumberOfSymbols|uint32\nfFileHeader|SizeOfOptionalHeader|uint16\nfFileHeader|Characteristics|uint16\nTFormatError|struct|struct{}||false\nMFormatError|Error|true||string\nTImportDirectory|struct|struct{OriginalFirstThunk uint32; TimeDateStamp uint32; ForwarderChain uint32; Name uint32; FirstThunk uint32; dll string}||false\nfImportDirectory|OriginalFirstThunk|uint32\nfImportDirectory|TimeDateStamp|uint32\nfImportDirectory|ForwarderChain|uint32\nfImportDirectory|Name|uint32\nfImportDirectory|FirstThunk|uint32\nTOptionalHeader32|struct|struct{Magic uint16; MajorLinkerVersion uint8; MinorLinkerVersion uint8; SizeOfCode uint32; SizeOfInitializedData uint32; SizeOfUninitializedData uint32; AddressOfEntryPoint uint32; BaseOfCode uint32; BaseOfData uint32; ImageBase uint32; SectionAlignment uint32; FileAlignment uint32; MajorOperatingSystemVersion uint16; MinorOperatingSystemVersion uint16; MajorImageVersion uint16; MinorImageVersion uint16; MajorSubsystemVersion uint16; MinorSubsystemVersion uint16; Win32VersionValue uint32; SizeOfImage uint32; SizeOfHeaders uint32; CheckSum uint32; Subsystem uint16; DllCharacteristics uint16; SizeOfStackReserve uint32; SizeOfStackCommit uint32; SizeOfHeapReserve uint32; SizeOfHeapCommit uint32; LoaderFlags uint32; NumberOfRvaAndSizes uint32; DataDirectory [16]debug/pe.DataDirectory}||false\nfOptionalHeader32|Magic|uint16\nfOptionalHeader32|MajorLinkerVersion|uint8\nfOptionalHeader32|MinorLinkerVersion|uint8\nfOptionalHeader32|SizeOfCode|uint32\nfOptionalHeader32|SizeOfInitializedData|uint32\nfOptionalHeader32|SizeOfUninitializedData|uint32\nfOptionalHeader32|AddressOfEntryPoint|uint32\nfOptionalHeader32|BaseOfCode|uint32\nfOptionalHeader32|BaseOfData|uint32\nfOptionalHeader32|ImageBase|uint32\nfOptionalHeader32|SectionAlignment|uint32\nfOptionalHeader32|FileAlignment|uint32\nfOptionalHeader32|MajorOperatingSystemVersion|uint16\nfOptionalHeader32|MinorOperatingSystemVersion|uint16\nfOptionalHeader32|MajorImageVersion|uint16\nfOptionalHeader32|MinorImageVersion|uint16\nfOptionalHeader32|MajorSubsystemVersion|uint16\nfOptionalHeader32|MinorSubsystemVersion|uint16\nfOptionalHeader32|Win32VersionValue|uint32\nfOptionalHeader32|SizeOfImage|uint32\nfOptionalHeader32|SizeOfHeaders|uint32\nfOptionalHeader32|CheckSum|uint32\nfOptionalHeader32|Subsystem|uint16\nfOptionalHeader32|DllCharacteristics|uint16\nfOptionalHeader32|SizeOfStackReserve|uint32\nfOptionalHeader32|SizeOfStackCommit|uint32\nfOptionalHeader32|SizeOfHeapReserve|uint32\nfOptionalHeader32|SizeOfHeapCommit|uint32\nfOptionalHeader32|LoaderFlags|uint32\nfOptionalHeader32|NumberOfRvaAndSizes|uint32\nfOptionalHeader32|DataDirectory|[16]debug/pe.DataDirectory\nTOptionalHeader64|struct|struct{Magic uint16; MajorLinkerVersion uint8; MinorLinkerVersion uint8; SizeOfCode uint32; SizeOfInitializedData uint32; SizeOfUninitializedData uint32; AddressOfEntryPoint uint32; BaseOfCode uint32; ImageBase uint64; SectionAlignment uint32; FileAlignment uint32; MajorOperatingSystemVersion uint16; MinorOperatingSystemVersion uint16; MajorImageVersion uint16; MinorImageVersion uint16; MajorSubsystemVersion uint16; MinorSubsystemVersion uint16; Win32VersionValue uint32; SizeOfImage uint32; SizeOfHeaders uint32; CheckSum uint32; Subsystem uint16; DllCharacteristics uint16; SizeOfStackReserve uint64; SizeOfStackCommit uint64; SizeOfHeapReserve uint64; SizeOfHeapCommit uint64; LoaderFlags uint32; NumberOfRvaAndSizes uint32; DataDirectory [16]debug/pe.DataDirectory}||false\nfOptionalHeader64|Magic|uint16\nfOptionalHeader64|MajorLinkerVersion|uint8\nfOptionalHeader64|MinorLinkerVersion|uint8\nfOptionalHeader64|SizeOfCode|uint32\nfOptionalHeader64|SizeOfInitializedData|uint32\nfOptionalHeader64|SizeOfUninitializedData|uint32\nfOptionalHeader64|AddressOfEntryPoint|uint32\nfOptionalHeader64|BaseOfCode|uint32\nfOptionalHeader64|ImageBase|uint64\nfOptionalHeader64|SectionAlignment|uint32\nfOptionalHeader64|FileAlignment|uint32\nfOptionalHeader64|MajorOperatingSystemVersion|uint16\nfOptionalHeader64|MinorOperatingSystemVersion|uint16\nfOptionalHeader64|MajorImageVersion|uint16\nfOptionalHeader64|MinorImageVersion|uint16\nfOptionalHeader64|MajorSubsystemVersion|uint16\nfOptionalHeader64|MinorSubsystemVersion|uint16\nfOptionalHeader64|Win32VersionValue|uint32\nfOptionalHeader64|SizeOfImage|uint32\nfOptionalHeader64|SizeOfHeaders|uint32\nfOptionalHeader64|CheckSum|uint32\nfOptionalHeader64|Subsystem|uint16\nfOptionalHeader64|DllCharacteristics|uint16\nfOptionalHeader64|SizeOfStackReserve|uint64\nfOptionalHeader64|SizeOfStackCommit|uint64\nfOptionalHeader64|SizeOfHeapReserve|uint64\nfOptionalHeader64|SizeOfHeapCommit|uint64\nfOptionalHeader64|LoaderFlags|uint32\nfOptionalHeader64|NumberOfRvaAndSizes|uint32\nfOptionalHeader64|DataDirectory|[16]debug/pe.DataDirectory\nTReloc|struct|struct{VirtualAddress uint32; SymbolTableIndex uint32; Type uint16}||false\nfReloc|VirtualAddress|uint32\nfReloc|SymbolTableIndex|uint32\nfReloc|Type|uint16\nTSection|struct|struct{debug/pe.SectionHeader; Relocs []debug/pe.Reloc; io.ReaderAt; sr *io.SectionReader}||false\nfSection|SectionHeader|debug/pe.SectionHeader\nfSection|Relocs|[]debug/pe.Reloc\nfSection|ReaderAt|io.ReaderAt\nfSection|Name|string\nfSection|VirtualSize|uint32\nfSection|VirtualAddress|uint32\nfSection|Size|uint32\nfSection|Offset|uint32\nfSection|PointerToRelocations|uint32\nfSection|PointerToLineNumbers|uint32\nfSection|NumberOfRelocations|uint16\nfSection|NumberOfLineNumbers|uint16\nfSection|Characteristics|uint32\nMSection|Data|true||[]byte,error\nMSection|Open|true||io.ReadSeeker\nMSection|ReadAt|false|p []byte,off int64|int,error\nTSectionHeader|struct|struct{Name string; VirtualSize uint32; VirtualAddress uint32; Size uint32; Offset uint32; PointerToRelocations uint32; PointerToLineNumbers uint32; NumberOfRelocations uint16; NumberOfLineNumbers uint16; Characteristics uint32}||false\nfSectionHeader|Name|string\nfSectionHeader|VirtualSize|uint32\nfSectionHeader|VirtualAddress|uint32\nfSectionHeader|Size|uint32\nfSectionHeader|Offset|uint32\nfSectionHeader|PointerToRelocations|uint32\nfSectionHeader|PointerToLineNumbers|uint32\nfSectionHeader|NumberOfRelocations|uint16\nfSectionHeader|NumberOfLineNumbers|uint16\nfSectionHeader|Characteristics|uint32\nTSectionHeader32|struct|struct{Name [8]uint8; VirtualSize uint32; VirtualAddress uint32; SizeOfRawData uint32; PointerToRawData uint32; PointerToRelocations uint32; PointerToLineNumbers uint32; NumberOfRelocations uint16; NumberOfLineNumbers uint16; Characteristics uint32}||false\nfSectionHeader32|Name|[8]uint8\nfSectionHeader32|VirtualSize|uint32\nfSectionHeader32|VirtualAddress|uint32\nfSectionHeader32|SizeOfRawData|uint32\nfSectionHeader32|PointerToRawData|uint32\nfSectionHeader32|PointerToRelocations|uint32\nfSectionHeader32|PointerToLineNumbers|uint32\nfSectionHeader32|NumberOfRelocations|uint16\nfSectionHeader32|NumberOfLineNumbers|uint16\nfSectionHeader32|Characteristics|uint32\nTStringTable|slice|[]byte||false\nMStringTable|String|false|start uint32|string,error\nTSymbol|struct|struct{Name string; Value uint32; SectionNumber int16; Type uint16; StorageClass uint8}||false\nfSymbol|Name|string\nfSymbol|Value|uint32\nfSymbol|SectionNumber|int16\nfSymbol|Type|uint16\nfSymbol|StorageClass|uint8\nCCOFFSymbolSize|int|untyped int\nCIMAGE_COMDAT_SELECT_ANY|int|untyped int\nCIMAGE_COMDAT_SELECT_ASSOCIATIVE|int|untyped int\nCIMAGE_COMDAT_SELECT_EXACT_MATCH|int|untyped int\nCIMAGE_COMDAT_SELECT_LARGEST|int|untyped int\nCIMAGE_COMDAT_SELECT_NODUPLICATES|int|untyped int\nCIMAGE_COMDAT_SELECT_SAME_SIZE|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_ARCHITECTURE|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_BASERELOC|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_BOUND_IMPORT|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_DEBUG|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_DELAY_IMPORT|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_EXCEPTION|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_EXPORT|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_GLOBALPTR|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_IAT|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_IMPORT|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_LOAD_CONFIG|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_RESOURCE|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_SECURITY|int|untyped int\nCIMAGE_DIRECTORY_ENTRY_TLS|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_APPCONTAINER|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_GUARD_CF|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_NO_BIND|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_NO_ISOLATION|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_NO_SEH|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_NX_COMPAT|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE|int|untyped int\nCIMAGE_DLLCHARACTERISTICS_WDM_DRIVER|int|untyped int\nCIMAGE_FILE_32BIT_MACHINE|int|untyped int\nCIMAGE_FILE_AGGRESIVE_WS_TRIM|int|untyped int\nCIMAGE_FILE_BYTES_REVERSED_HI|int|untyped int\nCIMAGE_FILE_BYTES_REVERSED_LO|int|untyped int\nCIMAGE_FILE_DEBUG_STRIPPED|int|untyped int\nCIMAGE_FILE_DLL|int|untyped int\nCIMAGE_FILE_EXECUTABLE_IMAGE|int|untyped int\nCIMAGE_FILE_LARGE_ADDRESS_AWARE|int|untyped int\nCIMAGE_FILE_LINE_NUMS_STRIPPED|int|untyped int\nCIMAGE_FILE_LOCAL_SYMS_STRIPPED|int|untyped int\nCIMAGE_FILE_MACHINE_AM33|int|untyped int\nCIMAGE_FILE_MACHINE_AMD64|int|untyped int\nCIMAGE_FILE_MACHINE_ARM|int|untyped int\nCIMAGE_FILE_MACHINE_ARM64|int|untyped int\nCIMAGE_FILE_MACHINE_ARMNT|int|untyped int\nCIMAGE_FILE_MACHINE_EBC|int|untyped int\nCIMAGE_FILE_MACHINE_I386|int|untyped int\nCIMAGE_FILE_MACHINE_IA64|int|untyped int\nCIMAGE_FILE_MACHINE_LOONGARCH32|int|untyped int\nCIMAGE_FILE_MACHINE_LOONGARCH64|int|untyped int\nCIMAGE_FILE_MACHINE_M32R|int|untyped int\nCIMAGE_FILE_MACHINE_MIPS16|int|untyped int\nCIMAGE_FILE_MACHINE_MIPSFPU|int|untyped int\nCIMAGE_FILE_MACHINE_MIPSFPU16|int|untyped int\nCIMAGE_FILE_MACHINE_POWERPC|int|untyped int\nCIMAGE_FILE_MACHINE_POWERPCFP|int|untyped int\nCIMAGE_FILE_MACHINE_R4000|int|untyped int\nCIMAGE_FILE_MACHINE_RISCV128|int|untyped int\nCIMAGE_FILE_MACHINE_RISCV32|int|untyped int\nCIMAGE_FILE_MACHINE_RISCV64|int|untyped int\nCIMAGE_FILE_MACHINE_SH3|int|untyped int\nCIMAGE_FILE_MACHINE_SH3DSP|int|untyped int\nCIMAGE_FILE_MACHINE_SH4|int|untyped int\nCIMAGE_FILE_MACHINE_SH5|int|untyped int\nCIMAGE_FILE_MACHINE_THUMB|int|untyped int\nCIMAGE_FILE_MACHINE_UNKNOWN|int|untyped int\nCIMAGE_FILE_MACHINE_WCEMIPSV2|int|untyped int\nCIMAGE_FILE_NET_RUN_FROM_SWAP|int|untyped int\nCIMAGE_FILE_RELOCS_STRIPPED|int|untyped int\nCIMAGE_FILE_REMOVABLE_RUN_FROM_SWAP|int|untyped int\nCIMAGE_FILE_SYSTEM|int|untyped int\nCIMAGE_FILE_UP_SYSTEM_ONLY|int|untyped int\nCIMAGE_SCN_CNT_CODE|int|untyped int\nCIMAGE_SCN_CNT_INITIALIZED_DATA|int|untyped int\nCIMAGE_SCN_CNT_UNINITIALIZED_DATA|int|untyped int\nCIMAGE_SCN_LNK_COMDAT|int|untyped int\nCIMAGE_SCN_MEM_DISCARDABLE|int|untyped int\nCIMAGE_SCN_MEM_EXECUTE|int|untyped int\nCIMAGE_SCN_MEM_READ|int|untyped int\nCIMAGE_SCN_MEM_WRITE|int|untyped int\nCIMAGE_SUBSYSTEM_EFI_APPLICATION|int|untyped int\nCIMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER|int|untyped int\nCIMAGE_SUBSYSTEM_EFI_ROM|int|untyped int\nCIMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER|int|untyped int\nCIMAGE_SUBSYSTEM_NATIVE|int|untyped int\nCIMAGE_SUBSYSTEM_NATIVE_WINDOWS|int|untyped int\nCIMAGE_SUBSYSTEM_OS2_CUI|int|untyped int\nCIMAGE_SUBSYSTEM_POSIX_CUI|int|untyped int\nCIMAGE_SUBSYSTEM_UNKNOWN|int|untyped int\nCIMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION|int|untyped int\nCIMAGE_SUBSYSTEM_WINDOWS_CE_GUI|int|untyped int\nCIMAGE_SUBSYSTEM_WINDOWS_CUI|int|untyped int\nCIMAGE_SUBSYSTEM_WINDOWS_GUI|int|untyped int\nCIMAGE_SUBSYSTEM_XBOX|int|untyped int",
|
|
55
55
|
"debug/plan9obj": "Pplan9obj\nFNewFile||r io.ReaderAt|*debug/plan9obj.File,error|false|\nFOpen||name string|*debug/plan9obj.File,error|false|\nTFile|struct|struct{debug/plan9obj.FileHeader; Sections []*debug/plan9obj.Section; closer io.Closer}||false\nfFile|FileHeader|debug/plan9obj.FileHeader\nfFile|Sections|[]*debug/plan9obj.Section\nfFile|Magic|uint32\nfFile|Bss|uint32\nfFile|Entry|uint64\nfFile|PtrSize|int\nfFile|LoadAddress|uint64\nfFile|HdrSize|uint64\nMFile|Close|true||error\nMFile|Section|true|name string|*debug/plan9obj.Section\nMFile|Symbols|true||[]debug/plan9obj.Sym,error\nTFileHeader|struct|struct{Magic uint32; Bss uint32; Entry uint64; PtrSize int; LoadAddress uint64; HdrSize uint64}||false\nfFileHeader|Magic|uint32\nfFileHeader|Bss|uint32\nfFileHeader|Entry|uint64\nfFileHeader|PtrSize|int\nfFileHeader|LoadAddress|uint64\nfFileHeader|HdrSize|uint64\nTSection|struct|struct{debug/plan9obj.SectionHeader; io.ReaderAt; sr *io.SectionReader}||false\nfSection|SectionHeader|debug/plan9obj.SectionHeader\nfSection|ReaderAt|io.ReaderAt\nfSection|Name|string\nfSection|Size|uint32\nfSection|Offset|uint32\nMSection|Data|true||[]byte,error\nMSection|Open|true||io.ReadSeeker\nMSection|ReadAt|false|p []byte,off int64|int,error\nTSectionHeader|struct|struct{Name string; Size uint32; Offset uint32}||false\nfSectionHeader|Name|string\nfSectionHeader|Size|uint32\nfSectionHeader|Offset|uint32\nTSym|struct|struct{Value uint64; Type rune; Name string}||false\nfSym|Value|uint64\nfSym|Type|rune\nfSym|Name|string\nCMagic386|int|untyped int\nCMagic64|int|untyped int\nCMagicAMD64|int|untyped int\nCMagicARM|int|untyped int\nVErrNoSymbols|error",
|
|
56
|
+
"embed": "Pembed\nTFS|struct|struct{files *[]embed.file}||false\nMFS|Open|false|name string|io/fs.File,error\nMFS|ReadDir|false|name string|[]io/fs.DirEntry,error\nMFS|ReadFile|false|name string|[]byte,error",
|
|
56
57
|
"encoding": "Pencoding\nTBinaryAppender|interface|interface{AppendBinary(b []byte) ([]byte, error)}||false\nMBinaryAppender|AppendBinary|false|b []byte|[]byte,error\nIBinaryAppender|AppendBinary|b []byte|[]byte,error\nTBinaryMarshaler|interface|interface{MarshalBinary() (data []byte, err error)}||false\nMBinaryMarshaler|MarshalBinary|false||[]byte,error\nIBinaryMarshaler|MarshalBinary||[]byte,error\nTBinaryUnmarshaler|interface|interface{UnmarshalBinary(data []byte) error}||false\nMBinaryUnmarshaler|UnmarshalBinary|false|data []byte|error\nIBinaryUnmarshaler|UnmarshalBinary|data []byte|error\nTTextAppender|interface|interface{AppendText(b []byte) ([]byte, error)}||false\nMTextAppender|AppendText|false|b []byte|[]byte,error\nITextAppender|AppendText|b []byte|[]byte,error\nTTextMarshaler|interface|interface{MarshalText() (text []byte, err error)}||false\nMTextMarshaler|MarshalText|false||[]byte,error\nITextMarshaler|MarshalText||[]byte,error\nTTextUnmarshaler|interface|interface{UnmarshalText(text []byte) error}||false\nMTextUnmarshaler|UnmarshalText|false|text []byte|error\nITextUnmarshaler|UnmarshalText|text []byte|error",
|
|
57
58
|
"encoding/ascii85": "Pascii85\nFDecode||dst []byte,src []byte,flush bool|int,int,error|false|\nFEncode||dst []byte,src []byte|int|false|\nFMaxEncodedLen||n int|int|false|\nFNewDecoder||r io.Reader|io.Reader|false|\nFNewEncoder||w io.Writer|io.WriteCloser|false|\nTCorruptInputError|basic|int64||true\nMCorruptInputError|Error|false||string",
|
|
58
59
|
"encoding/asn1": "Pasn1\nFMarshal||val any|[]byte,error|false|\nFMarshalWithParams||val any,params string|[]byte,error|false|\nFUnmarshal||b []byte,val any|[]byte,error|false|\nFUnmarshalWithParams||b []byte,val any,params string|[]byte,error|false|\nTBitString|struct|struct{Bytes []byte; BitLength int}||false\nfBitString|Bytes|[]byte\nfBitString|BitLength|int\nMBitString|At|false|i int|int\nMBitString|RightAlign|false||[]byte\nTEnumerated|basic|int||true\nTFlag|basic|bool||false\nTObjectIdentifier|slice|[]int||false\nMObjectIdentifier|Equal|false|other encoding/asn1.ObjectIdentifier|bool\nMObjectIdentifier|String|false||string\nTRawContent|slice|[]byte||false\nTRawValue|struct|struct{Class int; Tag int; IsCompound bool; Bytes []byte; FullBytes []byte}||false\nfRawValue|Class|int\nfRawValue|Tag|int\nfRawValue|IsCompound|bool\nfRawValue|Bytes|[]byte\nfRawValue|FullBytes|[]byte\nTStructuralError|struct|struct{Msg string}||false\nfStructuralError|Msg|string\nMStructuralError|Error|false||string\nTSyntaxError|struct|struct{Msg string}||false\nfSyntaxError|Msg|string\nMSyntaxError|Error|false||string\nCClassApplication|int|untyped int\nCClassContextSpecific|int|untyped int\nCClassPrivate|int|untyped int\nCClassUniversal|int|untyped int\nCTagBMPString|int|untyped int\nCTagBitString|int|untyped int\nCTagBoolean|int|untyped int\nCTagEnum|int|untyped int\nCTagGeneralString|int|untyped int\nCTagGeneralizedTime|int|untyped int\nCTagIA5String|int|untyped int\nCTagInteger|int|untyped int\nCTagNull|int|untyped int\nCTagNumericString|int|untyped int\nCTagOID|int|untyped int\nCTagOctetString|int|untyped int\nCTagPrintableString|int|untyped int\nCTagSequence|int|untyped int\nCTagSet|int|untyped int\nCTagT61String|int|untyped int\nCTagUTCTime|int|untyped int\nCTagUTF8String|int|untyped int\nVNullBytes|[]byte\nVNullRawValue|encoding/asn1.RawValue",
|
|
@@ -142,6 +143,7 @@ export const goStdlib = {
|
|
|
142
143
|
"regexp": "Pregexp\nFCompile||expr string|*regexp.Regexp,error|false|\nFCompilePOSIX||expr string|*regexp.Regexp,error|false|\nFMatch||pattern string,b []byte|bool,error|false|\nFMatchReader||pattern string,r io.RuneReader|bool,error|false|\nFMatchString||pattern string,s string|bool,error|false|\nFMustCompile||str string|*regexp.Regexp|false|\nFMustCompilePOSIX||str string|*regexp.Regexp|false|\nFQuoteMeta||s string|string|false|\nTRegexp|struct|struct{expr string; prog *regexp/syntax.Prog; onepass *regexp.onePassProg; numSubexp int; maxBitStateLen int; subexpNames []string; prefix string; prefixBytes []byte; prefixRune rune; prefixEnd uint32; mpool int; matchcap int; prefixComplete bool; cond regexp/syntax.EmptyOp; minInputLen int; longest bool}||false\nMRegexp|AppendText|true|b []byte|[]byte,error\nMRegexp|Copy|true||*regexp.Regexp\nMRegexp|Expand|true|dst []byte,template []byte,src []byte,match []int|[]byte\nMRegexp|ExpandString|true|dst []byte,template string,src string,match []int|[]byte\nMRegexp|Find|true|b []byte|[]byte\nMRegexp|FindAll|true|b []byte,n int|[][]byte\nMRegexp|FindAllIndex|true|b []byte,n int|[][]int\nMRegexp|FindAllString|true|s string,n int|[]string\nMRegexp|FindAllStringIndex|true|s string,n int|[][]int\nMRegexp|FindAllStringSubmatch|true|s string,n int|[][]string\nMRegexp|FindAllStringSubmatchIndex|true|s string,n int|[][]int\nMRegexp|FindAllSubmatch|true|b []byte,n int|[][][]byte\nMRegexp|FindAllSubmatchIndex|true|b []byte,n int|[][]int\nMRegexp|FindIndex|true|b []byte|[]int\nMRegexp|FindReaderIndex|true|r io.RuneReader|[]int\nMRegexp|FindReaderSubmatchIndex|true|r io.RuneReader|[]int\nMRegexp|FindString|true|s string|string\nMRegexp|FindStringIndex|true|s string|[]int\nMRegexp|FindStringSubmatch|true|s string|[]string\nMRegexp|FindStringSubmatchIndex|true|s string|[]int\nMRegexp|FindSubmatch|true|b []byte|[][]byte\nMRegexp|FindSubmatchIndex|true|b []byte|[]int\nMRegexp|LiteralPrefix|true||string,bool\nMRegexp|Longest|true||\nMRegexp|MarshalText|true||[]byte,error\nMRegexp|Match|true|b []byte|bool\nMRegexp|MatchReader|true|r io.RuneReader|bool\nMRegexp|MatchString|true|s string|bool\nMRegexp|NumSubexp|true||int\nMRegexp|ReplaceAll|true|src []byte,repl []byte|[]byte\nMRegexp|ReplaceAllFunc|true|src []byte,repl func([]byte) []byte|[]byte\nMRegexp|ReplaceAllLiteral|true|src []byte,repl []byte|[]byte\nMRegexp|ReplaceAllLiteralString|true|src string,repl string|string\nMRegexp|ReplaceAllString|true|src string,repl string|string\nMRegexp|ReplaceAllStringFunc|true|src string,repl func(string) string|string\nMRegexp|Split|true|s string,n int|[]string\nMRegexp|String|true||string\nMRegexp|SubexpIndex|true|name string|int\nMRegexp|SubexpNames|true||[]string\nMRegexp|UnmarshalText|true|text []byte|error",
|
|
143
144
|
"regexp/syntax": "Psyntax\nFCompile||re *regexp/syntax.Regexp|*regexp/syntax.Prog,error|false|\nFEmptyOpContext||r1 rune,r2 rune|regexp/syntax.EmptyOp|false|\nFIsWordChar||r rune|bool|false|\nFParse||s string,flags regexp/syntax.Flags|*regexp/syntax.Regexp,error|false|\nTEmptyOp|basic|uint8||true\nTError|struct|struct{Code regexp/syntax.ErrorCode; Expr string}||false\nfError|Code|regexp/syntax.ErrorCode\nfError|Expr|string\nMError|Error|true||string\nTErrorCode|basic|string||false\nMErrorCode|String|false||string\nTFlags|basic|uint16||true\nTInst|struct|struct{Op regexp/syntax.InstOp; Out uint32; Arg uint32; Rune []rune}||false\nfInst|Op|regexp/syntax.InstOp\nfInst|Out|uint32\nfInst|Arg|uint32\nfInst|Rune|[]rune\nMInst|MatchEmptyWidth|true|before rune,after rune|bool\nMInst|MatchRune|true|r rune|bool\nMInst|MatchRunePos|true|r rune|int\nMInst|String|true||string\nTInstOp|basic|uint8||true\nMInstOp|String|false||string\nTOp|basic|uint8||true\nMOp|String|false||string\nTProg|struct|struct{Inst []regexp/syntax.Inst; Start int; NumCap int}||false\nfProg|Inst|[]regexp/syntax.Inst\nfProg|Start|int\nfProg|NumCap|int\nMProg|Prefix|true||string,bool\nMProg|StartCond|true||regexp/syntax.EmptyOp\nMProg|String|true||string\nTRegexp|struct|struct{Op regexp/syntax.Op; Flags regexp/syntax.Flags; Sub []*regexp/syntax.Regexp; Sub0 [1]*regexp/syntax.Regexp; Rune []rune; Rune0 [2]rune; Min int; Max int; Cap int; Name string}||false\nfRegexp|Op|regexp/syntax.Op\nfRegexp|Flags|regexp/syntax.Flags\nfRegexp|Sub|[]*regexp/syntax.Regexp\nfRegexp|Sub0|[1]*regexp/syntax.Regexp\nfRegexp|Rune|[]rune\nfRegexp|Rune0|[2]rune\nfRegexp|Min|int\nfRegexp|Max|int\nfRegexp|Cap|int\nfRegexp|Name|string\nMRegexp|CapNames|true||[]string\nMRegexp|Equal|true|y *regexp/syntax.Regexp|bool\nMRegexp|MaxCap|true||int\nMRegexp|Simplify|true||*regexp/syntax.Regexp\nMRegexp|String|true||string\nCClassNL|typed|regexp/syntax.Flags\nCDotNL|typed|regexp/syntax.Flags\nCEmptyBeginLine|typed|regexp/syntax.EmptyOp\nCEmptyBeginText|typed|regexp/syntax.EmptyOp\nCEmptyEndLine|typed|regexp/syntax.EmptyOp\nCEmptyEndText|typed|regexp/syntax.EmptyOp\nCEmptyNoWordBoundary|typed|regexp/syntax.EmptyOp\nCEmptyWordBoundary|typed|regexp/syntax.EmptyOp\nCErrInternalError|typed|regexp/syntax.ErrorCode\nCErrInvalidCharClass|typed|regexp/syntax.ErrorCode\nCErrInvalidCharRange|typed|regexp/syntax.ErrorCode\nCErrInvalidEscape|typed|regexp/syntax.ErrorCode\nCErrInvalidNamedCapture|typed|regexp/syntax.ErrorCode\nCErrInvalidPerlOp|typed|regexp/syntax.ErrorCode\nCErrInvalidRepeatOp|typed|regexp/syntax.ErrorCode\nCErrInvalidRepeatSize|typed|regexp/syntax.ErrorCode\nCErrInvalidUTF8|typed|regexp/syntax.ErrorCode\nCErrLarge|typed|regexp/syntax.ErrorCode\nCErrMissingBracket|typed|regexp/syntax.ErrorCode\nCErrMissingParen|typed|regexp/syntax.ErrorCode\nCErrMissingRepeatArgument|typed|regexp/syntax.ErrorCode\nCErrNestingDepth|typed|regexp/syntax.ErrorCode\nCErrTrailingBackslash|typed|regexp/syntax.ErrorCode\nCErrUnexpectedParen|typed|regexp/syntax.ErrorCode\nCFoldCase|typed|regexp/syntax.Flags\nCInstAlt|typed|regexp/syntax.InstOp\nCInstAltMatch|typed|regexp/syntax.InstOp\nCInstCapture|typed|regexp/syntax.InstOp\nCInstEmptyWidth|typed|regexp/syntax.InstOp\nCInstFail|typed|regexp/syntax.InstOp\nCInstMatch|typed|regexp/syntax.InstOp\nCInstNop|typed|regexp/syntax.InstOp\nCInstRune|typed|regexp/syntax.InstOp\nCInstRune1|typed|regexp/syntax.InstOp\nCInstRuneAny|typed|regexp/syntax.InstOp\nCInstRuneAnyNotNL|typed|regexp/syntax.InstOp\nCLiteral|typed|regexp/syntax.Flags\nCMatchNL|typed|regexp/syntax.Flags\nCNonGreedy|typed|regexp/syntax.Flags\nCOneLine|typed|regexp/syntax.Flags\nCOpAlternate|typed|regexp/syntax.Op\nCOpAnyChar|typed|regexp/syntax.Op\nCOpAnyCharNotNL|typed|regexp/syntax.Op\nCOpBeginLine|typed|regexp/syntax.Op\nCOpBeginText|typed|regexp/syntax.Op\nCOpCapture|typed|regexp/syntax.Op\nCOpCharClass|typed|regexp/syntax.Op\nCOpConcat|typed|regexp/syntax.Op\nCOpEmptyMatch|typed|regexp/syntax.Op\nCOpEndLine|typed|regexp/syntax.Op\nCOpEndText|typed|regexp/syntax.Op\nCOpLiteral|typed|regexp/syntax.Op\nCOpNoMatch|typed|regexp/syntax.Op\nCOpNoWordBoundary|typed|regexp/syntax.Op\nCOpPlus|typed|regexp/syntax.Op\nCOpQuest|typed|regexp/syntax.Op\nCOpRepeat|typed|regexp/syntax.Op\nCOpStar|typed|regexp/syntax.Op\nCOpWordBoundary|typed|regexp/syntax.Op\nCPOSIX|typed|regexp/syntax.Flags\nCPerl|typed|regexp/syntax.Flags\nCPerlX|typed|regexp/syntax.Flags\nCSimple|typed|regexp/syntax.Flags\nCUnicodeGroups|typed|regexp/syntax.Flags\nCWasDollar|typed|regexp/syntax.Flags",
|
|
144
145
|
"runtime": "Pruntime\nFAddCleanup|T,S|ptr *T,cleanup func(S),arg S|runtime.Cleanup|false|;\nFBlockProfile||p []runtime.BlockProfileRecord|int,bool|false|\nFBreakpoint||||false|\nFCPUProfile|||[]byte|false|\nFCaller||skip int|uintptr,string,int,bool|false|\nFCallers||skip int,pc []uintptr|int|false|\nFCallersFrames||callers []uintptr|*runtime.Frames|false|\nFFuncForPC||pc uintptr|*runtime.Func|false|\nFGC||||false|\nFGOMAXPROCS||n int|int|false|\nFGOROOT|||string|false|\nFGoexit||||false|\nFGoroutineProfile||p []runtime.StackRecord|int,bool|false|\nFGosched||||false|\nFKeepAlive||x any||false|\nFLockOSThread||||false|\nFMemProfile||p []runtime.MemProfileRecord,inuseZero bool|int,bool|false|\nFMutexProfile||p []runtime.BlockProfileRecord|int,bool|false|\nFNumCPU|||int|false|\nFNumCgoCall|||int64|false|\nFNumGoroutine|||int|false|\nFReadMemStats||m *runtime.MemStats||false|\nFReadTrace|||[]byte|false|\nFSetBlockProfileRate||rate int||false|\nFSetCPUProfileRate||hz int||false|\nFSetCgoTraceback||version int,traceback unsafe.Pointer,context unsafe.Pointer,symbolizer unsafe.Pointer||false|\nFSetDefaultGOMAXPROCS||||false|\nFSetFinalizer||obj any,finalizer any||false|\nFSetMutexProfileFraction||rate int|int|false|\nFStack||buf []byte,all bool|int|false|\nFStartTrace|||error|false|\nFStopTrace||||false|\nFThreadCreateProfile||p []runtime.StackRecord|int,bool|false|\nFUnlockOSThread||||false|\nFVersion|||string|false|\nTBlockProfileRecord|struct|struct{Count int64; Cycles int64; runtime.StackRecord}||false\nfBlockProfileRecord|Count|int64\nfBlockProfileRecord|Cycles|int64\nfBlockProfileRecord|StackRecord|runtime.StackRecord\nfBlockProfileRecord|Stack0|[32]uintptr\nMBlockProfileRecord|Stack|true||[]uintptr\nTCleanup|struct|struct{id uint64; ptr uintptr}||false\nMCleanup|Stop|false||\nTError|interface|interface{RuntimeError(); error}||false\nMError|Error|false||string\nMError|RuntimeError|false||\nIError|Error||string\nIError|RuntimeError||\nTFrame|struct|struct{PC uintptr; Func *runtime.Func; Function string; File string; Line int; startLine int; Entry uintptr; funcInfo runtime.funcInfo}||false\nfFrame|PC|uintptr\nfFrame|Func|*runtime.Func\nfFrame|Function|string\nfFrame|File|string\nfFrame|Line|int\nfFrame|Entry|uintptr\nTFrames|struct|struct{callers []uintptr; nextPC uintptr; frames []runtime.Frame; frameStore [2]runtime.Frame}||false\nMFrames|Next|true||runtime.Frame,bool\nTFunc|struct|struct{opaque struct{}}||false\nMFunc|Entry|true||uintptr\nMFunc|FileLine|true|pc uintptr|string,int\nMFunc|Name|true||string\nTMemProfileRecord|struct|struct{AllocBytes int64; FreeBytes int64; AllocObjects int64; FreeObjects int64; Stack0 [32]uintptr}||false\nfMemProfileRecord|AllocBytes|int64\nfMemProfileRecord|FreeBytes|int64\nfMemProfileRecord|AllocObjects|int64\nfMemProfileRecord|FreeObjects|int64\nfMemProfileRecord|Stack0|[32]uintptr\nMMemProfileRecord|InUseBytes|true||int64\nMMemProfileRecord|InUseObjects|true||int64\nMMemProfileRecord|Stack|true||[]uintptr\nTMemStats|struct|struct{Alloc uint64; TotalAlloc uint64; Sys uint64; Lookups uint64; Mallocs uint64; Frees uint64; HeapAlloc uint64; HeapSys uint64; HeapIdle uint64; HeapInuse uint64; HeapReleased uint64; HeapObjects uint64; StackInuse uint64; StackSys uint64; MSpanInuse uint64; MSpanSys uint64; MCacheInuse uint64; MCacheSys uint64; BuckHashSys uint64; GCSys uint64; OtherSys uint64; NextGC uint64; LastGC uint64; PauseTotalNs uint64; PauseNs [256]uint64; PauseEnd [256]uint64; NumGC uint32; NumForcedGC uint32; GCCPUFraction float64; EnableGC bool; DebugGC bool; BySize [61]struct{Size uint32; Mallocs uint64; Frees uint64}}||false\nfMemStats|Alloc|uint64\nfMemStats|TotalAlloc|uint64\nfMemStats|Sys|uint64\nfMemStats|Lookups|uint64\nfMemStats|Mallocs|uint64\nfMemStats|Frees|uint64\nfMemStats|HeapAlloc|uint64\nfMemStats|HeapSys|uint64\nfMemStats|HeapIdle|uint64\nfMemStats|HeapInuse|uint64\nfMemStats|HeapReleased|uint64\nfMemStats|HeapObjects|uint64\nfMemStats|StackInuse|uint64\nfMemStats|StackSys|uint64\nfMemStats|MSpanInuse|uint64\nfMemStats|MSpanSys|uint64\nfMemStats|MCacheInuse|uint64\nfMemStats|MCacheSys|uint64\nfMemStats|BuckHashSys|uint64\nfMemStats|GCSys|uint64\nfMemStats|OtherSys|uint64\nfMemStats|NextGC|uint64\nfMemStats|LastGC|uint64\nfMemStats|PauseTotalNs|uint64\nfMemStats|PauseNs|[256]uint64\nfMemStats|PauseEnd|[256]uint64\nfMemStats|NumGC|uint32\nfMemStats|NumForcedGC|uint32\nfMemStats|GCCPUFraction|float64\nfMemStats|EnableGC|bool\nfMemStats|DebugGC|bool\nfMemStats|BySize|[61]struct{Size uint32; Mallocs uint64; Frees uint64}\nTPanicNilError|struct|struct{_ [0]*runtime.PanicNilError}||false\nMPanicNilError|Error|true||string\nMPanicNilError|RuntimeError|true||\nTPinner|struct|struct{*runtime.pinner}||false\nMPinner|Pin|true|pointer any|\nMPinner|Unpin|true||\nTStackRecord|struct|struct{Stack0 [32]uintptr}||false\nfStackRecord|Stack0|[32]uintptr\nMStackRecord|Stack|true||[]uintptr\nTTypeAssertionError|struct|struct{_interface *runtime._type; concrete *runtime._type; asserted *runtime._type; missingMethod string}||false\nMTypeAssertionError|Error|true||string\nMTypeAssertionError|RuntimeError|true||\nCCompiler|string|untyped string\nCGOARCH|string|string\nCGOOS|string|string\nVMemProfileRate|int",
|
|
146
|
+
"runtime/coverage": "Pcoverage\nFClearCounters|||error|false|\nFWriteCounters||w io.Writer|error|false|\nFWriteCountersDir||dir string|error|false|\nFWriteMeta||w io.Writer|error|false|\nFWriteMetaDir||dir string|error|false|",
|
|
145
147
|
"runtime/debug": "Pdebug\nFFreeOSMemory||||false|\nFParseBuildInfo||data string|*runtime/debug.BuildInfo,error|false|\nFPrintStack||||false|\nFReadBuildInfo|||*runtime/debug.BuildInfo,bool|false|\nFReadGCStats||stats *runtime/debug.GCStats||false|\nFSetCrashOutput||f *os.File,opts runtime/debug.CrashOptions|error|false|\nFSetGCPercent||percent int|int|false|\nFSetMaxStack||bytes int|int|false|\nFSetMaxThreads||threads int|int|false|\nFSetMemoryLimit||limit int64|int64|false|\nFSetPanicOnFault||enabled bool|bool|false|\nFSetTraceback||level string||false|\nFStack|||[]byte|false|\nFWriteHeapDump||fd uintptr||false|\nTBuildInfo|struct|struct{GoVersion string \"json:\\\\\",omitempty\\\\\"\"; Path string \"json:\\\\\",omitempty\\\\\"\"; Main runtime/debug.Module \"json:\\\\\"\\\\\"\"; Deps []*runtime/debug.Module \"json:\\\\\",omitempty\\\\\"\"; Settings []runtime/debug.BuildSetting \"json:\\\\\",omitempty\\\\\"\"}||false\nfBuildInfo|GoVersion|string\nfBuildInfo|Path|string\nfBuildInfo|Main|runtime/debug.Module\nfBuildInfo|Deps|[]*runtime/debug.Module\nfBuildInfo|Settings|[]runtime/debug.BuildSetting\nMBuildInfo|String|true||string\nTBuildSetting|struct|struct{Key string \"json:\\\\\",omitempty\\\\\"\"; Value string \"json:\\\\\",omitempty\\\\\"\"}||false\nfBuildSetting|Key|string\nfBuildSetting|Value|string\nTCrashOptions|struct|struct{}||false\nTGCStats|struct|struct{LastGC time.Time; NumGC int64; PauseTotal time.Duration; Pause []time.Duration; PauseEnd []time.Time; PauseQuantiles []time.Duration}||false\nfGCStats|LastGC|time.Time\nfGCStats|NumGC|int64\nfGCStats|PauseTotal|time.Duration\nfGCStats|Pause|[]time.Duration\nfGCStats|PauseEnd|[]time.Time\nfGCStats|PauseQuantiles|[]time.Duration\nTModule|struct|struct{Path string \"json:\\\\\",omitempty\\\\\"\"; Version string \"json:\\\\\",omitempty\\\\\"\"; Sum string \"json:\\\\\",omitempty\\\\\"\"; Replace *runtime/debug.Module \"json:\\\\\",omitempty\\\\\"\"}||false\nfModule|Path|string\nfModule|Version|string\nfModule|Sum|string\nfModule|Replace|*runtime/debug.Module",
|
|
146
148
|
"runtime/metrics": "Pmetrics\nFAll|||[]runtime/metrics.Description|false|\nFRead||m []runtime/metrics.Sample||false|\nTDescription|struct|struct{Name string; Description string; Kind runtime/metrics.ValueKind; Cumulative bool}||false\nfDescription|Name|string\nfDescription|Description|string\nfDescription|Kind|runtime/metrics.ValueKind\nfDescription|Cumulative|bool\nTFloat64Histogram|struct|struct{Counts []uint64; Buckets []float64}||false\nfFloat64Histogram|Counts|[]uint64\nfFloat64Histogram|Buckets|[]float64\nTSample|struct|struct{Name string; Value runtime/metrics.Value}||false\nfSample|Name|string\nfSample|Value|runtime/metrics.Value\nTValue|struct|struct{kind runtime/metrics.ValueKind; scalar uint64; pointer unsafe.Pointer}||false\nMValue|Float64|false||float64\nMValue|Float64Histogram|false||*runtime/metrics.Float64Histogram\nMValue|Kind|false||runtime/metrics.ValueKind\nMValue|Uint64|false||uint64\nTValueKind|basic|int||true\nCKindBad|typed|runtime/metrics.ValueKind\nCKindFloat64|typed|runtime/metrics.ValueKind\nCKindFloat64Histogram|typed|runtime/metrics.ValueKind\nCKindUint64|typed|runtime/metrics.ValueKind",
|
|
147
149
|
"runtime/pprof": "Ppprof\nFDo||ctx context.Context,labels runtime/pprof.LabelSet,f func(context.Context)||false|\nFForLabels||ctx context.Context,f func(key string, value string) bool||false|\nFLabel||ctx context.Context,key string|string,bool|false|\nFLabels||args ...string|runtime/pprof.LabelSet|true|\nFLookup||name string|*runtime/pprof.Profile|false|\nFNewProfile||name string|*runtime/pprof.Profile|false|\nFProfiles|||[]*runtime/pprof.Profile|false|\nFSetGoroutineLabels||ctx context.Context||false|\nFStartCPUProfile||w io.Writer|error|false|\nFStopCPUProfile||||false|\nFWithLabels||ctx context.Context,labels runtime/pprof.LabelSet|context.Context|false|\nFWriteHeapProfile||w io.Writer|error|false|\nTLabelSet|struct|struct{list []internal/runtime/pprof/label.Label}||false\nTProfile|struct|struct{name string; mu sync.Mutex; m map[any][]uintptr; count func() int; write func(io.Writer, int) error}||false\nMProfile|Add|true|value any,skip int|\nMProfile|Count|true||int\nMProfile|Name|true||string\nMProfile|Remove|true|value any|\nMProfile|WriteTo|true|w io.Writer,debug int|error",
|