chore(deps): stop tracking vendored modules
- commit
- bdb7c71a2ff1ba7d0b058ac92dea14f87de2fe68
- author
- brice · · 2026-07-22 07:22 UTC
- parent
- 659be60
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3329 files · +2 -1396109
M .gitignore +2 -2
| @@ -16,8 +16,8 @@ dumber.exe | |||
| 16 | 16 | # Output of the go coverage tool | |
| 17 | 17 | *.out | |
| 18 | 18 | ||
| 19 | - | # Dependency directories (remove the comment below to include it) | |
| 20 | - | # vendor/ | |
| 19 | + | # Dependency directories | |
| 20 | + | vendor/ | |
| 21 | 21 | ||
| 22 | 22 | # Go workspace file | |
| 23 | 23 | go.work | |
| @@ -16,8 +16,8 @@ dumber.exe | |||||
| 16 | # Output of the go coverage tool | 16 | # Output of the go coverage tool | ||
| 17 | *.out | 17 | *.out | ||
| 18 | 18 | ||||
| 19 | - | # Dependency directories (remove the comment below to include it) | 19 | + | # Dependency directories |
| 20 | - | # vendor/ | 20 | + | vendor/ |
| 21 | 21 | ||||
| 22 | # Go workspace file | 22 | # Go workspace file | ||
| 23 | go.work | 23 | go.work | ||
D vendor/github.com/a-h/parse/.gitignore +0 -1 generated file: collapsed
D vendor/github.com/a-h/parse/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/README.md +0 -145 generated file: collapsed
D vendor/github.com/a-h/parse/all.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/any.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/parse/convert.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/parse/digits.go +0 -4 generated file: collapsed
D vendor/github.com/a-h/parse/eof.go +0 -15 generated file: collapsed
D vendor/github.com/a-h/parse/error.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/input.go +0 -79 generated file: collapsed
D vendor/github.com/a-h/parse/optional.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/or.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/parse/regexp.go +0 -46 generated file: collapsed
D vendor/github.com/a-h/parse/rune.go +0 -58 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof2.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof3.go +0 -35 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof4.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof5.go +0 -48 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof6.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof7.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof8.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof9.go +0 -76 generated file: collapsed
D vendor/github.com/a-h/parse/string.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/parse/stringfrom.go +0 -30 generated file: collapsed
D vendor/github.com/a-h/parse/stringuntil.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/parse/then.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/parse/times.go +0 -83 generated file: collapsed
D vendor/github.com/a-h/parse/tuples.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/types.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/parse/until.go +0 -68 generated file: collapsed
D vendor/github.com/a-h/parse/whitespace.go +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/.dockerignore +0 -3 generated file: collapsed
D vendor/github.com/a-h/templ/.envrc +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/.gitignore +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/.goreleaser.yaml +0 -72 generated file: collapsed
D vendor/github.com/a-h/templ/.ignore +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/.version +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/CONTRIBUTING.md +0 -247 generated file: collapsed
D vendor/github.com/a-h/templ/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/README.md +0 -194 generated file: collapsed
D vendor/github.com/a-h/templ/SECURITY.md +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +0 -132 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +0 -452 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +0 -349 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +0 -237 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +0 -82 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +0 -385 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +0 -75 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +0 -84 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +0 -166 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +0 -130 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +0 -114 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +0 -145 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +0 -146 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +0 -61 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +0 -215 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +0 -24 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +0 -1464 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +0 -60 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +0 -50 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/main.go +0 -280 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +0 -68 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +0 -295 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/cosign.pub +0 -4 generated file: collapsed
D vendor/github.com/a-h/templ/flake.lock +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/flake.nix +0 -99 generated file: collapsed
D vendor/github.com/a-h/templ/flush.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/fragment.go +0 -73 generated file: collapsed
D vendor/github.com/a-h/templ/generator/generator.go +0 -1829 generated file: collapsed
D vendor/github.com/a-h/templ/generator/rangewriter.go +0 -122 generated file: collapsed
D vendor/github.com/a-h/templ/handler.go +0 -163 generated file: collapsed
D vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/internal/format/scriptelement.go +0 -96 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/styleelement.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/templ.go +0 -102 generated file: collapsed
D vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/internal/imports/process.go +0 -218 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +0 -161 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/prettier.go +0 -133 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +0 -12 generated file: collapsed
D vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +0 -20 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncmap/map.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncset/set.go +0 -42 generated file: collapsed
D vendor/github.com/a-h/templ/join.go +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/js.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/jsonscript.go +0 -85 generated file: collapsed
D vendor/github.com/a-h/templ/jsonstring.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/LICENSE +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +0 -86 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +0 -244 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +0 -354 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +0 -131 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +0 -225 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +0 -140 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/base.go +0 -95 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/basic.go +0 -705 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +0 -1068 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +0 -523 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/client.go +0 -412 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/context.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +0 -264 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +0 -149 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/doc.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/errors.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/general.go +0 -461 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/handler.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/language.go +0 -1401 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/progress.go +0 -119 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/protocol.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/registration.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +0 -179 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/server.go +0 -1893 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/text.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/util.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/version.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/window.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/workspace.go +0 -213 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/uri/uri.go +0 -245 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/once.go +0 -63 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/childrenparser.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/cssparser.go +0 -200 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/diagnostics.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/elementparser.go +0 -605 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/expressionparser.go +0 -246 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +0 -57 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fuzz.sh +0 -5 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +0 -343 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +0 -180 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goparser.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +0 -144 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/packageparser.go +0 -32 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/parser.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/raw.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scriptparser.go +0 -336 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +0 -91 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/sourcemap.go +0 -134 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/structure.go +0 -43 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +0 -171 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templatefile.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templateparser.go +0 -154 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templelementparser.go +0 -59 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/textparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/types.go +0 -1537 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +0 -357 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/runtime.go +0 -736 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/buffer.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/bufferpool.go +0 -38 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/builder.go +0 -8 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/runtime.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/scriptelement.go +0 -107 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/styleattribute.go +0 -217 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/watchmode.go +0 -181 generated file: collapsed
D vendor/github.com/a-h/templ/safehtml/style.go +0 -199 generated file: collapsed
D vendor/github.com/a-h/templ/scripttemplate.go +0 -150 generated file: collapsed
D vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/url.go +0 -31 generated file: collapsed
D vendor/github.com/a-h/templ/version.go +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/watchmode.go +0 -105 generated file: collapsed
D vendor/github.com/andybalholm/brotli/.gitignore +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/LICENSE +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/README.md +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references.go +0 -185 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references_hq.go +0 -796 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_cost.go +0 -436 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_reader.go +0 -266 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bitwriter.go +0 -56 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter.go +0 -144 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_command.go +0 -434 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_distance.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_literal.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +0 -1435 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_command.go +0 -164 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_distance.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_literal.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/command.go +0 -254 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment.go +0 -834 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +0 -775 generated file: collapsed
D vendor/github.com/andybalholm/brotli/constants.go +0 -77 generated file: collapsed
D vendor/github.com/andybalholm/brotli/context.go +0 -2176 generated file: collapsed
D vendor/github.com/andybalholm/brotli/decode.go +0 -2570 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary.go +0 -122890 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary_hash.go +0 -32779 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encode.go +0 -1220 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder.go +0 -177 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_dict.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_fast.go +0 -197 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode.go +0 -592 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode_static.go +0 -4399 generated file: collapsed
D vendor/github.com/andybalholm/brotli/fast_log.go +0 -290 generated file: collapsed
D vendor/github.com/andybalholm/brotli/find_match_length.go +0 -45 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/README.md +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/gzip.go +0 -65 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +0 -517 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_code.go +0 -346 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/token.go +0 -80 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/writer.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h10.go +0 -287 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h5.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h6.go +0 -216 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash.go +0 -342 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_composite.go +0 -93 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +0 -252 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_rolling.go +0 -168 generated file: collapsed
D vendor/github.com/andybalholm/brotli/histogram.go +0 -226 generated file: collapsed
D vendor/github.com/andybalholm/brotli/http.go +0 -189 generated file: collapsed
D vendor/github.com/andybalholm/brotli/huffman.go +0 -653 generated file: collapsed
D vendor/github.com/andybalholm/brotli/literal_cost.go +0 -182 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +0 -212 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +0 -248 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +0 -278 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +0 -34 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m0.go +0 -175 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m4.go +0 -339 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +0 -328 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +0 -53 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/trio.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +0 -258 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +0 -206 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zm.go +0 -301 generated file: collapsed
D vendor/github.com/andybalholm/brotli/memory.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock.go +0 -574 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_command.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_distance.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_literal.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/params.go +0 -37 generated file: collapsed
D vendor/github.com/andybalholm/brotli/platform.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix_dec.go +0 -723 generated file: collapsed
D vendor/github.com/andybalholm/brotli/quality.go +0 -196 generated file: collapsed
D vendor/github.com/andybalholm/brotli/reader.go +0 -126 generated file: collapsed
D vendor/github.com/andybalholm/brotli/ringbuffer.go +0 -134 generated file: collapsed
D vendor/github.com/andybalholm/brotli/state.go +0 -313 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict.go +0 -662 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict_lut.go +0 -75094 generated file: collapsed
D vendor/github.com/andybalholm/brotli/symbol_list.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/transform.go +0 -641 generated file: collapsed
D vendor/github.com/andybalholm/brotli/utf8_util.go +0 -70 generated file: collapsed
D vendor/github.com/andybalholm/brotli/util.go +0 -7 generated file: collapsed
D vendor/github.com/andybalholm/brotli/write_bits.go +0 -52 generated file: collapsed
D vendor/github.com/andybalholm/brotli/writer.go +0 -162 generated file: collapsed
D vendor/github.com/atotto/clipboard/.travis.yml +0 -22 generated file: collapsed
D vendor/github.com/atotto/clipboard/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/atotto/clipboard/README.md +0 -48 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard.go +0 -20 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_darwin.go +0 -52 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_plan9.go +0 -42 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_unix.go +0 -149 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_windows.go +0 -157 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/README.md +0 -83 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +0 -305 generated file: collapsed
D vendor/github.com/bnema/purego-cef/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/bridge.go +0 -783 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +0 -135 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +0 -255 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +0 -222 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +0 -80 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +0 -13 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +0 -1340 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +0 -280 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +0 -173 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +0 -691 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +0 -578 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +0 -74 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +0 -198 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +0 -771 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +0 -364 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +0 -576 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +0 -490 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +0 -469 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +0 -1631 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +0 -363 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +0 -1825 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/doc.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/init.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +0 -929 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +0 -345 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +0 -487 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +0 -743 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +0 -1093 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +0 -409 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +0 -959 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +0 -1010 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +0 -1167 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +0 -760 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/opaque_types.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/string_list.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +0 -1391 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +0 -1534 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +0 -436 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +0 -1091 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +0 -478 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +0 -637 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +0 -166 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +0 -257 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_component_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +0 -1137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +0 -217 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/doc.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +0 -967 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +0 -589 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/cefapi/contract.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/engine.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/helpers.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/init.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/marshal.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/refcount.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/loader/loader.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_component_updater_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_component_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +0 -256 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_component_updater_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +0 -42 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/.gitignore +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/Makefile +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/README.md +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/command_line.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/doc.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/handlers.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/input.go +0 -277 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +0 -980 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +0 -476 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +0 -1037 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/options.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/profile.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/render_stack.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/size_observation.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/view.go +0 -1171 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/window_info.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/context.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/core.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +0 -173 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/context.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/core.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/player.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/driver.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/register.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +0 -1461 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +0 -863 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +0 -358 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/db.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/generated_symbols.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/loader.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/types.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/libwebp/libwebp.go +0 -880 collapsed to keep the page light
D vendor/github.com/bnema/purego/.gitignore +0 -1 collapsed to keep the page light
D vendor/github.com/bnema/purego/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego/README.md +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/cgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlerror.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_android.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_freebsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_linux.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_playground.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_stubs.s +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego/func.go +0 -677 collapsed to keep the page light
D vendor/github.com/bnema/purego/gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/go_runtime.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_go123.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_nogo123.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/empty.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/doc.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/linux.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +0 -121 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +0 -81 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/strings/strings.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/is_ios.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/nocgo.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_386.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_abi_helpers.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_amd64.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm64.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_loong64.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_ppc64le.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_riscv64.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_s390x.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_386.s +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_amd64.s +0 -170 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm.s +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm64.s +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_loong64.s +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_ppc64le.s +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_riscv64.s +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_s390x.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_386.s +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm.s +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm64.s +0 -75 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_loong64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_ppc64le.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_riscv64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_s390x.s +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_32bit.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_cgo_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_notstackargs.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_stackargs.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_unix.go +0 -693 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_windows.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_386.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_amd64.s +0 -2014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_loong64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_ppc64le.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_riscv64.s +0 -4051 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_s390x.s +0 -4015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/internal/core/core.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +0 -2056 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +0 -2083 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +0 -812 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +0 -1214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +0 -313 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +0 -969 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +0 -493 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +0 -704 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +0 -1019 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +0 -523 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +0 -568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +0 -572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +0 -399 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +0 -398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +0 -871 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +0 -548 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +0 -816 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +0 -954 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +0 -1077 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +0 -791 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +0 -1049 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +0 -566 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +0 -1296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +0 -1218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +0 -859 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +0 -1906 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +0 -999 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +0 -690 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +0 -520 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +0 -586 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +0 -672 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +0 -441 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +0 -561 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +0 -386 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +0 -1118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +0 -889 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +0 -477 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +0 -971 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +0 -420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +0 -287 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +0 -802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +0 -529 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +0 -2327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +0 -387 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +0 -1196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +0 -938 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +0 -1890 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +0 -547 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +0 -599 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +0 -685 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +0 -687 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/cairo/main.go +0 -947 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +0 -245 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +0 -279 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +0 -299 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +0 -625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +0 -896 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +0 -1449 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +0 -424 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +0 -508 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +0 -4904 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +0 -304 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +0 -575 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +0 -57 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +0 -710 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +0 -716 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +0 -853 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +0 -746 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +0 -1783 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gaction.go +0 -663 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +0 -852 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +0 -434 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +0 -2242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +0 -2213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +0 -339 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +0 -314 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +0 -327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +0 -496 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +0 -674 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +0 -416 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +0 -152 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +0 -1909 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +0 -542 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +0 -753 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +0 -719 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +0 -1102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +0 -1459 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +0 -1041 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfile.go +0 -7039 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +0 -1682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +0 -614 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gicon.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +0 -869 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +0 -2410 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giostream.go +0 -723 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +0 -236 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +0 -167 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +0 -610 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +0 -993 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmount.go +0 -1422 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +0 -1017 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +0 -336 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +0 -1272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +0 -305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +0 -136 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +0 -315 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -301 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +0 -1053 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresource.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +0 -1862 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +0 -676 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +0 -433 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +0 -618 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +0 -446 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +0 -2007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +0 -955 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtask.go +0 -1352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +0 -309 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +0 -499 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +0 -319 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +0 -886 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +0 -90 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +0 -211 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +0 -370 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +0 -1140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +0 -1182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/garray.go +0 -817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +0 -448 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +0 -404 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +0 -958 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcache.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +0 -222 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +0 -457 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdate.go +0 -850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdir.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/genviron.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gerror.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +0 -806 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghash.go +0 -742 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghook.go +0 -260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +0 -1174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glist.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmain.go +0 -2568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +0 -178 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +0 -788 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmem.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +0 -1030 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gnode.go +0 -439 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/goption.go +0 -666 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gquark.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +0 -503 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grand.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +0 -200 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gregex.go +0 -1625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grel.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +0 -483 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gshell.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslice.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslist.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +0 -1164 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstring.go +0 -622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +0 -1491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthread.go +0 -2487 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtree.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +0 -1703 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guri.go +0 -1112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gutils.go +0 -766 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guuid.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +0 -3134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversion.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/main.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +0 -58 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/genums.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +0 -2267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +0 -1291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +0 -839 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +0 -1702 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +0 -380 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +0 -951 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/main.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/more.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +0 -3 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +0 -885 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +0 -220 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +0 -417 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +0 -189 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +0 -2171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +0 -1303 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +0 -857 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +0 -484 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +0 -111 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +0 -604 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +0 -656 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +0 -681 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +0 -1023 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +0 -944 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +0 -1046 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +0 -206 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +0 -910 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +0 -1892 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +0 -1060 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +0 -691 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +0 -872 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +0 -565 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +0 -317 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +0 -472 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +0 -337 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +0 -1338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +0 -757 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +0 -536 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +0 -1116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +0 -686 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +0 -463 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +0 -2296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +0 -665 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +0 -2235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +0 -975 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +0 -711 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +0 -662 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +0 -324 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +0 -447 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +0 -251 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +0 -1649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +0 -773 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +0 -643 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +0 -712 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +0 -1007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +0 -494 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +0 -635 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +0 -535 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +0 -1817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +0 -879 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +0 -1256 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +0 -705 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +0 -881 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +0 -1759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +0 -583 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +0 -1802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +0 -571 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +0 -312 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +0 -1173 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +0 -917 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +0 -356 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +0 -1572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +0 -223 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +0 -497 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +0 -930 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +0 -375 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +0 -835 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +0 -931 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +0 -627 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +0 -488 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +0 -564 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +0 -486 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +0 -1921 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +0 -1024 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +0 -659 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +0 -968 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +0 -913 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +0 -539 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +0 -736 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +0 -726 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +0 -1169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +0 -606 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +0 -1332 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +0 -640 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +0 -597 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +0 -505 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +0 -320 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +0 -864 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +0 -401 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +0 -1420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +0 -1398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +0 -371 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +0 -394 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +0 -464 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +0 -396 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +0 -877 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +0 -1750 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +0 -2305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +0 -1468 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +0 -1574 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +0 -238 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +0 -2855 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +0 -667 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +0 -611 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +0 -1898 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +0 -688 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +0 -334 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +0 -379 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +0 -899 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +0 -2734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +0 -1028 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +0 -630 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +0 -504 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +0 -5777 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +0 -2182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +0 -231 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +0 -1092 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +0 -1850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +0 -202 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +0 -2354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +0 -573 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +0 -143 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +0 -1847 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +0 -248 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +0 -302 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +0 -467 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +0 -67 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +0 -642 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +0 -1445 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +0 -254 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +0 -700 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +0 -1397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +0 -854 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +0 -636 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +0 -66 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +0 -133 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +0 -343 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +0 -344 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +0 -276 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +0 -187 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +0 -429 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +0 -1260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +0 -215 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +0 -423 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +0 -149 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +0 -273 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +0 -177 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +0 -2622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +0 -432 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +0 -230 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +0 -4734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +0 -545 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/more.go +0 -234 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/LICENSE +0 -20 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/README.md +0 -30 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/backoff.go +0 -66 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/context.go +0 -62 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/exponential.go +0 -216 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/retry.go +0 -146 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/ticker.go +0 -97 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/timer.go +0 -35 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/tries.go +0 -38 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +0 -221 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/help/help.go +0 -240 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/key/key.go +0 -140 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/README.md +0 -71 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +0 -229 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/keys.go +0 -97 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/list.go +0 -1330 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/style.go +0 -99 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +0 -214 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +0 -102 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +0 -224 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/table/table.go +0 -450 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +0 -890 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +0 -544 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitattributes +0 -1 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitignore +0 -23 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.golangci.yml +0 -44 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/README.md +0 -400 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/commands.go +0 -222 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/exec.go +0 -133 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +0 -129 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key.go +0 -715 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_other.go +0 -13 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_sequences.go +0 -130 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_windows.go +0 -441 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/logging.go +0 -53 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/mouse.go +0 -308 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/options.go +0 -252 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/renderer.go +0 -88 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/screen.go +0 -248 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_unix.go +0 -33 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_windows.go +0 -10 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +0 -790 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea.go +0 -941 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea_init.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty.go +0 -141 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_unix.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_windows.go +0 -68 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.golangci.yml +0 -47 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/README.md +0 -109 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/doc.go +0 -4 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env.go +0 -294 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/profile.go +0 -108 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/writer.go +0 -171 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.golangci.yml +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/README.md +0 -815 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/align.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/borders.go +0 -490 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/color.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/get.go +0 -556 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/join.go +0 -175 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/position.go +0 -154 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ranges.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/renderer.go +0 -181 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/runes.go +0 -43 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/set.go +0 -799 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/size.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/style.go +0 -588 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/unset.go +0 -331 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/whitespace.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ansi.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ascii.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/background.go +0 -178 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c0.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c1.go +0 -72 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/charset.go +0 -55 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/clipboard.go +0 -75 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/color.go +0 -784 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ctrl.go +0 -156 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cursor.go +0 -637 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cwd.go +0 -26 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/doc.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/finalterm.go +0 -67 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/graphics.go +0 -62 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/hyperlink.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/inband.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/iterm2.go +0 -18 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/keypad.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/kitty.go +0 -90 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/method.go +0 -196 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode.go +0 -690 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +0 -495 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/modes.go +0 -65 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mouse.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/notification.go +0 -32 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/palette.go +0 -34 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser.go +0 -417 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/const.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/seq.go +0 -136 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_decode.go +0 -525 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_handler.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_sync.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/passthrough.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/paste.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/progress.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/reset.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/screen.go +0 -410 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/sgr.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/status.go +0 -168 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/style.go +0 -819 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/termcap.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/title.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/truncate.go +0 -290 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/urxvt.go +0 -17 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/util.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/width.go +0 -107 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/winop.go +0 -59 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/wrap.go +0 -472 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/xterm.go +0 -138 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/buffer.go +0 -474 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/cell.go +0 -487 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/errors.go +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/geom.go +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +0 -301 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/link.go +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/pen.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/screen.go +0 -1514 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/sequence.go +0 -131 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/style.go +0 -31 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +0 -137 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/utils.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/wrap.go +0 -191 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/writer.go +0 -340 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term.go +0 -51 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_other.go +0 -39 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_plan9.go +0 -118 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix.go +0 -96 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_other.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_windows.go +0 -87 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/terminal.go +0 -12 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/util.go +0 -47 collapsed to keep the page light
D vendor/github.com/cli/browser/LICENSE +0 -23 collapsed to keep the page light
D vendor/github.com/cli/browser/README.md +0 -20 collapsed to keep the page light
D vendor/github.com/cli/browser/browser.go +0 -57 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_darwin.go +0 -5 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_freebsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_openbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_unsupported.go +0 -12 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_windows.go +0 -7 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/.gitignore +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/AGENTS.md +0 -51 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +0 -129 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/README.md +0 -190 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/gen.go +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/graphemes.go +0 -73 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/options.go +0 -30 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/trie.go +0 -1699 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/truncate.go +0 -149 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/width.go +0 -239 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +0 -120 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +0 -138 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +0 -79 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +0 -144 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +0 -25 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +0 -205 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +0 -1717 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +0 -21 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +0 -62 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +0 -24 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +0 -416 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/LICENSE +0 -15 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypass.go +0 -145 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +0 -38 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/common.go +0 -341 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/config.go +0 -306 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/doc.go +0 -211 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/dump.go +0 -509 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/format.go +0 -419 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/spew.go +0 -148 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.golangci.yml +0 -24 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/README.md +0 -2 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/keycodes.go +0 -205 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/mode.go +0 -82 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/read.go +0 -154 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/records.go +0 -486 collapsed to keep the page light
D vendor/github.com/fatih/color/LICENSE.md +0 -20 collapsed to keep the page light
D vendor/github.com/fatih/color/README.md +0 -189 collapsed to keep the page light
D vendor/github.com/fatih/color/color.go +0 -733 collapsed to keep the page light
D vendor/github.com/fatih/color/color_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/fatih/color/doc.go +0 -134 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.mailmap +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +0 -651 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +0 -147 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/README.md +0 -214 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_fen.go +0 -469 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_inotify.go +0 -597 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +0 -735 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_other.go +0 -22 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_windows.go +0 -702 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/fsnotify.go +0 -526 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +0 -32 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +0 -56 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +0 -16 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +0 -45 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/internal.go +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix2.go +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/shared.go +0 -64 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/staticcheck.conf +0 -3 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_bsd.go +0 -7 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_darwin.go +0 -8 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.editorconfig +0 -24 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.envrc +0 -7 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +0 -104 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/README.md +0 -81 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +0 -714 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.nix +0 -14 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/errors.go +0 -244 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +0 -11 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +0 -9 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +0 -61 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +0 -1948 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +0 -44 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +0 -10 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.cirrus.yml +0 -11 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.golangci.yml +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/MAINTAINERS +0 -3 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/README.md +0 -47 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/SECURITY.md +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth.go +0 -257 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_anonymous.go +0 -16 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_other.go +0 -7 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_windows.go +0 -5 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_external.go +0 -26 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +0 -109 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/call.go +0 -66 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn.go +0 -1009 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_darwin.go +0 -36 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_other.go +0 -83 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_unix.go +0 -40 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_windows.go +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/dbus.go +0 -427 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/decoder.go +0 -376 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/default_handler.go +0 -338 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/doc.go +0 -70 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/encoder.go +0 -235 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/escape.go +0 -84 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/export.go +0 -484 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/match.go +0 -89 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/message.go +0 -393 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/object.go +0 -181 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequence.go +0 -24 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequential_handler.go +0 -125 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/server_interfaces.go +0 -107 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sig.go +0 -298 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_darwin.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_generic.go +0 -52 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unix.go +0 -291 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +0 -95 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +0 -94 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_zos.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant.go +0 -169 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_lexer.go +0 -284 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_parser.go +0 -815 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_others.go +0 -16 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_windows.go +0 -42 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/.gitignore +0 -101 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +0 -72 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/LICENSE +0 -7 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/README.md +0 -490 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +0 -67 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colors.go +0 -1156 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +0 -91 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +0 -1 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +0 -208 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/rand.go +0 -22 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +0 -192 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/sort.go +0 -191 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +0 -290 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/README.md +0 -48 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_others.go +0 -38 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_windows.go +0 -1047 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/noncolorable.go +0 -57 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/LICENSE +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/README.md +0 -50 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_bsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_others.go +0 -17 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_plan9.go +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_solaris.go +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_tcgets.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_windows.go +0 -136 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader.go +0 -19 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_unix.go +0 -11 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_windows.go +0 -85 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/README.md +0 -27 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/benchstat.txt +0 -43 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/new.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/old.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth.go +0 -420 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_js.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_posix.go +0 -81 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_table.go +0 -488 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_windows.go +0 -34 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/LICENSE.txt +0 -24 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/README.md +0 -85 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/env.go +0 -53 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/interpolate.go +0 -213 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/parser.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.golangci.yml +0 -27 collapsed to keep the page light
D vendor/github.com/muesli/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/ansi/README.md +0 -31 collapsed to keep the page light
D vendor/github.com/muesli/ansi/ansi.go +0 -7 collapsed to keep the page light
D vendor/github.com/muesli/ansi/buffer.go +0 -40 collapsed to keep the page light
D vendor/github.com/muesli/ansi/compressor/writer.go +0 -132 collapsed to keep the page light
D vendor/github.com/muesli/ansi/writer.go +0 -76 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci-soft.yml +0 -47 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci.yml +0 -29 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/README.md +0 -64 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader.go +0 -93 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +0 -146 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_default.go +0 -12 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_linux.go +0 -154 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_select.go +0 -136 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_unix.go +0 -18 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_windows.go +0 -244 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci-soft.yml +0 -43 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci.yml +0 -28 collapsed to keep the page light
D vendor/github.com/muesli/termenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/termenv/README.md +0 -431 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansi_compat.md +0 -65 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansicolors.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/termenv/color.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_linux.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_solaris.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_unix.go +0 -13 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_zos.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/copy.go +0 -37 collapsed to keep the page light
D vendor/github.com/muesli/termenv/hyperlink.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/notification.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/output.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/profile.go +0 -112 collapsed to keep the page light
D vendor/github.com/muesli/termenv/screen.go +0 -590 collapsed to keep the page light
D vendor/github.com/muesli/termenv/style.go +0 -126 collapsed to keep the page light
D vendor/github.com/muesli/termenv/templatehelper.go +0 -88 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv.go +0 -115 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_other.go +0 -30 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_posix.go +0 -17 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_solaris.go +0 -22 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_unix.go +0 -301 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_windows.go +0 -140 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/.gitignore +0 -24 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/README.md +0 -35 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/atomic.go +0 -73 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_unix.go +0 -14 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_windows.go +0 -33 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/zfile_windows.go +0 -27 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.dockerignore +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitattributes +0 -4 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.golangci.toml +0 -76 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +0 -128 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/AGENTS.md +0 -73 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +0 -254 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/Dockerfile +0 -6 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/README.md +0 -327 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/SECURITY.md +0 -16 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +0 -1 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/caps.sh +0 -101 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/ci.sh +0 -293 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode.go +0 -538 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode_fused.go +0 -362 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/errors.go +0 -233 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +0 -37 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +0 -49 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +0 -450 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/localtime.go +0 -121 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/marshaler.go +0 -1697 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/strict.go +0 -108 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +0 -597 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/toml.abnf +0 -246 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/types.go +0 -24 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +0 -2396
| @@ -1,2396 +0,0 @@ | |||
| 1 | - | package toml | |
| 2 | - | ||
| 3 | - | import ( | |
| 4 | - | "encoding" | |
| 5 | - | "errors" | |
| 6 | - | "fmt" | |
| 7 | - | "io" | |
| 8 | - | "math" | |
| 9 | - | "reflect" | |
| 10 | - | "strconv" | |
| 11 | - | "strings" | |
| 12 | - | "sync" | |
| 13 | - | "time" | |
| 14 | - | ||
| 15 | - | "github.com/pelletier/go-toml/v2/internal/tracker" | |
| 16 | - | "github.com/pelletier/go-toml/v2/unstable" | |
| 17 | - | ) | |
| 18 | - | ||
| 19 | - | // decoderPool recycles decoders (and their internal buffers: parser arena, | |
| 20 | - | // seen-tracker entries, scratch buffers) across calls to Unmarshal and | |
| 21 | - | // Decode. | |
| 22 | - | var decoderPool = sync.Pool{ | |
| 23 | - | New: func() interface{} { return &decoder{} }, | |
| 24 | - | } | |
| 25 | - | ||
| 26 | - | func getDecoder(strictMode, unmarshalerInterface bool) *decoder { | |
| 27 | - | d := decoderPool.Get().(*decoder) | |
| 28 | - | d.reset() | |
| 29 | - | d.strict.Enabled = strictMode | |
| 30 | - | d.unmarshalerInterface = unmarshalerInterface | |
| 31 | - | return d | |
| 32 | - | } | |
| 33 | - | ||
| 34 | - | func putDecoder(d *decoder) { | |
| 35 | - | decoderPool.Put(d) | |
| 36 | - | } | |
| 37 | - | ||
| 38 | - | // reset clears the per-document state of the decoder, keeping the allocated | |
| 39 | - | // buffers for reuse. | |
| 40 | - | func (d *decoder) reset() { | |
| 41 | - | d.seen.Reset() | |
| 42 | - | d.tableKey = d.tableKey[:0] | |
| 43 | - | d.skipUntilTable = false | |
| 44 | - | d.path = d.path[:0] | |
| 45 | - | d.captures = d.captures[:0] | |
| 46 | - | d.captureIdx = -1 | |
| 47 | - | d.segIdx = d.segIdx[:0] | |
| 48 | - | // Reuse the array-table counter slots across documents instead of | |
| 49 | - | // deleting them: a zeroed slot is indistinguishable from an absent one, | |
| 50 | - | // and keeping it alive means setArrayCount does not have to allocate a new | |
| 51 | - | // *int every time the same path reappears. A safety valve bounds the table | |
| 52 | - | // for adversarial inputs that introduce unboundedly many distinct paths. | |
| 53 | - | if len(d.arrayCounts) > 1<<14 { | |
| 54 | - | d.arrayCounts = nil | |
| 55 | - | } else { | |
| 56 | - | for _, p := range d.arrayCounts { | |
| 57 | - | *p = 0 | |
| 58 | - | } | |
| 59 | - | } | |
| 60 | - | d.tableTarget = reflect.Value{} | |
| 61 | - | d.tableTargetValid = false | |
| 62 | - | d.tableFlush = d.tableFlush[:0] | |
| 63 | - | d.tableParentSlot = slotWriter{} | |
| 64 | - | d.keyParts = d.keyParts[:0] | |
| 65 | - | d.strict.Reset() | |
| 66 | - | } | |
| 67 | - | ||
| 68 | - | // Unmarshal deserializes a TOML document into a Go value. | |
| 69 | - | // | |
| 70 | - | // It is a shortcut for Decoder.Decode() with the default options. | |
| 71 | - | func Unmarshal(data []byte, v interface{}) error { | |
| 72 | - | d := getDecoder(false, false) | |
| 73 | - | err := d.unmarshal(data, v) | |
| 74 | - | putDecoder(d) | |
| 75 | - | return err | |
| 76 | - | } | |
| 77 | - | ||
| 78 | - | // Decoder reads and decode a TOML document from an input stream. | |
| 79 | - | type Decoder struct { | |
| 80 | - | // input | |
| 81 | - | r io.Reader | |
| 82 | - | ||
| 83 | - | // global settings | |
| 84 | - | strict bool | |
| 85 | - | ||
| 86 | - | // toggles unmarshaler interface | |
| 87 | - | unmarshalerInterface bool | |
| 88 | - | } | |
| 89 | - | ||
| 90 | - | // NewDecoder creates a new Decoder that will read from r. | |
| 91 | - | func NewDecoder(r io.Reader) *Decoder { | |
| 92 | - | return &Decoder{r: r} | |
| 93 | - | } | |
| 94 | - | ||
| 95 | - | // DisallowUnknownFields causes the Decoder to return an error when the | |
| 96 | - | // destination is a struct and the input contains a key that does not match a | |
| 97 | - | // non-ignored field. | |
| 98 | - | // | |
| 99 | - | // In that case, the Decoder returns a StrictMissingError that can be used to | |
| 100 | - | // retrieve the individual errors as well as generate a human readable | |
| 101 | - | // description of the missing fields. | |
| 102 | - | func (d *Decoder) DisallowUnknownFields() *Decoder { | |
| 103 | - | d.strict = true | |
| 104 | - | return d | |
| 105 | - | } | |
| 106 | - | ||
| 107 | - | // EnableUnmarshalerInterface allows to enable unmarshaler interface. | |
| 108 | - | // | |
| 109 | - | // With this feature enabled, types implementing the unstable.Unmarshaler | |
| 110 | - | // interface can be decoded from any structure of the document. It allows types | |
| 111 | - | // that don't have a straightforward TOML representation to provide their own | |
| 112 | - | // decoding logic. | |
| 113 | - | // | |
| 114 | - | // The UnmarshalTOML method receives raw TOML bytes: | |
| 115 | - | // - For single values: the raw value bytes (e.g., `"hello"` for a string) | |
| 116 | - | // - For tables: all key-value lines belonging to that table | |
| 117 | - | // - For inline tables/arrays: the raw bytes of the inline structure | |
| 118 | - | // | |
| 119 | - | // The unstable.RawMessage type can be used to capture raw TOML bytes for | |
| 120 | - | // later processing, similar to json.RawMessage. | |
| 121 | - | // | |
| 122 | - | // *Unstable:* This method does not follow the compatibility guarantees of | |
| 123 | - | // semver. It can be changed or removed without a new major version being | |
| 124 | - | // issued. | |
| 125 | - | func (d *Decoder) EnableUnmarshalerInterface() *Decoder { | |
| 126 | - | d.unmarshalerInterface = true | |
| 127 | - | return d | |
| 128 | - | } | |
| 129 | - | ||
| 130 | - | // Decode the whole content of r into v. | |
| 131 | - | // | |
| 132 | - | // By default, values in the document that don't exist in the target Go value | |
| 133 | - | // are ignored. See Decoder.DisallowUnknownFields() to change this behavior. | |
| 134 | - | // | |
| 135 | - | // When a TOML local date, time, or date-time is decoded into a time.Time, its | |
| 136 | - | // value is represented in time.Local timezone. Otherwise the appropriate Local* | |
| 137 | - | // structure is used. For time values, precision up to the nanosecond is | |
| 138 | - | // supported by truncating extra digits. | |
| 139 | - | // | |
| 140 | - | // Empty tables decoded in an interface{} create an empty initialized | |
| 141 | - | // map[string]interface{}. | |
| 142 | - | // | |
| 143 | - | // Types implementing the encoding.TextUnmarshaler interface are decoded from a | |
| 144 | - | // TOML string. | |
| 145 | - | // | |
| 146 | - | // When decoding a number, go-toml will return an error if the number is out of | |
| 147 | - | // bounds for the target type (which includes negative numbers when decoding | |
| 148 | - | // into an unsigned int). | |
| 149 | - | // | |
| 150 | - | // If an error occurs while decoding the content of the document, this function | |
| 151 | - | // returns a toml.DecodeError, providing context about the issue. When using | |
| 152 | - | // strict mode and a field is missing, a `toml.StrictMissingError` is | |
| 153 | - | // returned. In any other case, this function returns a standard Go error. | |
| 154 | - | // | |
| 155 | - | // # Type mapping | |
| 156 | - | // | |
| 157 | - | // List of supported TOML types and their associated accepted Go types: | |
| 158 | - | // | |
| 159 | - | // String -> string | |
| 160 | - | // Integer -> uint*, int*, depending on size | |
| 161 | - | // Float -> float*, depending on size | |
| 162 | - | // Boolean -> bool | |
| 163 | - | // Offset Date-Time -> time.Time | |
| 164 | - | // Local Date-time -> LocalDateTime, time.Time | |
| 165 | - | // Local Date -> LocalDate, time.Time | |
| 166 | - | // Local Time -> LocalTime, time.Time | |
| 167 | - | // Array -> slice and array, depending on elements types | |
| 168 | - | // Table -> map and struct | |
| 169 | - | // Inline Table -> same as Table | |
| 170 | - | // Array of Tables -> same as Array and Table | |
| 171 | - | func (d *Decoder) Decode(v interface{}) error { | |
| 172 | - | b, err := io.ReadAll(d.r) | |
| 173 | - | if err != nil { | |
| 174 | - | return fmt.Errorf("toml: %w", err) | |
| 175 | - | } | |
| 176 | - | ||
| 177 | - | dec := getDecoder(d.strict, d.unmarshalerInterface) | |
| 178 | - | err = dec.unmarshal(b, v) | |
| 179 | - | putDecoder(dec) | |
| 180 | - | return err | |
| 181 | - | } | |
| 182 | - | ||
| 183 | - | // pathPart is one part of the key path leading to a value. Parts that come | |
| 184 | - | // from the current table header only carry a name; parts that come from the | |
| 185 | - | // key of the current key-value expression also carry the AST node, and their | |
| 186 | - | // name is materialized lazily to avoid allocations. | |
| 187 | - | type pathPart struct { | |
| 188 | - | name string | |
| 189 | - | node *unstable.Node | |
| 190 | - | } | |
| 191 | - | ||
| 192 | - | // bytes returns the raw bytes of the key part. | |
| 193 | - | func (p *pathPart) bytes() []byte { | |
| 194 | - | if p.node != nil { | |
| 195 | - | return p.node.Data | |
| 196 | - | } | |
| 197 | - | return []byte(p.name) | |
| 198 | - | } | |
| 199 | - | ||
| 200 | - | // str returns the key part as a string, possibly allocating. | |
| 201 | - | func (p *pathPart) str() string { | |
| 202 | - | if p.node != nil { | |
| 203 | - | return string(p.node.Data) | |
| 204 | - | } | |
| 205 | - | return p.name | |
| 206 | - | } | |
| 207 | - | ||
| 208 | - | // rawCapture accumulates the raw bytes fed to a type implementing | |
| 209 | - | // unstable.Unmarshaler for a table target. The target is identified by the | |
| 210 | - | // parts of its key and the array-table indexes in effect when the capture | |
| 211 | - | // was created, so that it can be located again once the whole document has | |
| 212 | - | // been processed (the address of the target may change as slices grow). | |
| 213 | - | type rawCapture struct { | |
| 214 | - | names []string | |
| 215 | - | // indexes[i] is the index to use when reaching a slice or array right | |
| 216 | - | // before consuming names[i]. indexes[len(names)] is the index of the | |
| 217 | - | // element when the target is an element of an array table. -1 when not | |
| 218 | - | // relevant. | |
| 219 | - | indexes []int | |
| 220 | - | buf []byte | |
| 221 | - | } | |
| 222 | - | ||
| 223 | - | type decoder struct { | |
| 224 | - | p unstable.Parser | |
| 225 | - | ||
| 226 | - | // strict mode | |
| 227 | - | strict strict | |
| 228 | - | ||
| 229 | - | // toggles unmarshaler interface | |
| 230 | - | unmarshalerInterface bool | |
| 231 | - | ||
| 232 | - | // tracks the duplicate and type consistency of the keys | |
| 233 | - | seen tracker.SeenTracker | |
| 234 | - | ||
| 235 | - | // path of the current table header, as copied strings | |
| 236 | - | tableKey []string | |
| 237 | - | ||
| 238 | - | // true when the expressions under the current table header cannot be | |
| 239 | - | // stored anywhere and should be skipped | |
| 240 | - | skipUntilTable bool | |
| 241 | - | ||
| 242 | - | // scratch buffer for the key path of the current expression | |
| 243 | - | path []pathPart | |
| 244 | - | ||
| 245 | - | // raw captures for the unmarshaler interface, in order of first | |
| 246 | - | // appearance. captureIdx is the index of the capture the current table | |
| 247 | - | // belongs to, or -1. | |
| 248 | - | captures []rawCapture | |
| 249 | - | captureIdx int | |
| 250 | - | ||
| 251 | - | // segIdx[i] records the array element index used when traversing a | |
| 252 | - | // slice or array right before consuming the i-th part of the current | |
| 253 | - | // table key. Reset for each table expression. | |
| 254 | - | segIdx []int | |
| 255 | - | ||
| 256 | - | // arrayCounts tracks the number of elements appended to fixed-size | |
| 257 | - | // arrays used as array tables, keyed by the NUL-joined key parts. | |
| 258 | - | // Values are pointer slots so that updating an existing path does not | |
| 259 | - | // allocate a new key string. | |
| 260 | - | arrayCounts map[string]*int | |
| 261 | - | ||
| 262 | - | // Cached target of the current table, so that key-values do not need to | |
| 263 | - | // walk the document structure from the root for every expression. | |
| 264 | - | // tableFlush holds the write-backs to perform when leaving the table | |
| 265 | - | // (for targets reached through map values, which are copies). | |
| 266 | - | // tableParentSlot stores a replacement of the target itself (e.g. a nil | |
| 267 | - | // map that was allocated) into its parent. | |
| 268 | - | tableTarget reflect.Value | |
| 269 | - | tableTargetValid bool | |
| 270 | - | tableFlush []flushOp | |
| 271 | - | tableParentSlot slotWriter | |
| 272 | - | ||
| 273 | - | // strKey is a reusable string value used as map key, so that map | |
| 274 | - | // operations with string keys do not need to allocate a boxed key for | |
| 275 | - | // every access. It must be refreshed with stringMapKey immediately | |
| 276 | - | // before each use: any recursive call may overwrite it. | |
| 277 | - | strKey reflect.Value | |
| 278 | - | ||
| 279 | - | // interned de-duplicates key strings: documents repeat the same keys | |
| 280 | - | // over and over, and the table survives pooling, so repeated decodes | |
| 281 | - | // of similar documents stop allocating key strings altogether. | |
| 282 | - | interned map[string]string | |
| 283 | - | ||
| 284 | - | // pathScratch is the buffer used by joinPath. | |
| 285 | - | pathScratch []byte | |
| 286 | - | ||
| 287 | - | // keyParts is the reusable buffer holding the decoded parts of the key of | |
| 288 | - | // the current expression in the fused generic decode path. | |
| 289 | - | keyParts [][]byte | |
| 290 | - | } | |
| 291 | - | ||
| 292 | - | // slotWriter remembers how to store a value at some location of the target | |
| 293 | - | // structure. Implemented as a struct instead of a closure to avoid | |
| 294 | - | // allocations. | |
| 295 | - | type slotWriter struct { | |
| 296 | - | kind uint8 // 0: none, 1: slot.Set, 2: m.SetMapIndex(k, ...), 3: m.SetMapIndex(string key ks, ...) | |
| 297 | - | slot reflect.Value | |
| 298 | - | m reflect.Value | |
| 299 | - | k reflect.Value | |
| 300 | - | ks string | |
| 301 | - | } | |
| 302 | - | ||
| 303 | - | func (d *decoder) storeSlot(s *slotWriter, nv reflect.Value) { | |
| 304 | - | switch s.kind { | |
| 305 | - | case 1: | |
| 306 | - | if s.slot.CanSet() { | |
| 307 | - | s.slot.Set(nv) | |
| 308 | - | } | |
| 309 | - | case 2: | |
| 310 | - | s.m.SetMapIndex(s.k, nv) | |
| 311 | - | case 3: | |
| 312 | - | s.m.SetMapIndex(d.stringMapKey(s.ks), nv) | |
| 313 | - | } | |
| 314 | - | } | |
| 315 | - | ||
| 316 | - | // flushOp stores val using w when the table is flushed. | |
| 317 | - | type flushOp struct { | |
| 318 | - | w slotWriter | |
| 319 | - | val reflect.Value | |
| 320 | - | } | |
| 321 | - | ||
| 322 | - | // flushTable performs the pending write-backs of the cached table target, in | |
| 323 | - | // reverse order so that inner copies land before their parents are stored. | |
| 324 | - | func (d *decoder) flushTable() { | |
| 325 | - | for i := len(d.tableFlush) - 1; i >= 0; i-- { | |
| 326 | - | d.storeSlot(&d.tableFlush[i].w, d.tableFlush[i].val) | |
| 327 | - | } | |
| 328 | - | d.tableFlush = d.tableFlush[:0] | |
| 329 | - | d.tableTargetValid = false | |
| 330 | - | d.tableParentSlot = slotWriter{} | |
| 331 | - | d.tableTarget = reflect.Value{} | |
| 332 | - | } | |
| 333 | - | ||
| 334 | - | // intern returns the string corresponding to the given bytes, reusing a | |
| 335 | - | // previous allocation when the same key has been seen before. | |
| 336 | - | func (d *decoder) intern(b []byte) string { | |
| 337 | - | if s, ok := d.interned[string(b)]; ok { // does not allocate | |
| 338 | - | return s | |
| 339 | - | } | |
| 340 | - | if d.interned == nil { | |
| 341 | - | d.interned = make(map[string]string, 64) | |
| 342 | - | } else if len(d.interned) >= 1<<14 { | |
| 343 | - | // Safety valve for adversarial inputs: do not let the table grow | |
| 344 | - | // without bounds. | |
| 345 | - | for k := range d.interned { | |
| 346 | - | delete(d.interned, k) | |
| 347 | - | } | |
| 348 | - | } | |
| 349 | - | s := string(b) | |
| 350 | - | d.interned[s] = s | |
| 351 | - | return s | |
| 352 | - | } | |
| 353 | - | ||
| 354 | - | // partString returns the name of a path part, interning it when it comes | |
| 355 | - | // from the document. | |
| 356 | - | func (d *decoder) partString(p *pathPart) string { | |
| 357 | - | if p.node != nil { | |
| 358 | - | return d.intern(p.node.Data) | |
| 359 | - | } | |
| 360 | - | return p.name | |
| 361 | - | } | |
| 362 | - | ||
| 363 | - | // stringMapKey returns a reflect.Value holding the given string, reusing the | |
| 364 | - | // same allocation every time. The result must be used (the map operation | |
| 365 | - | // performed) before any recursive call, which may overwrite the buffer. | |
| 366 | - | func (d *decoder) stringMapKey(s string) reflect.Value { | |
| 367 | - | if !d.strKey.IsValid() { | |
| 368 | - | d.strKey = reflect.New(stringType).Elem() | |
| 369 | - | } | |
| 370 | - | d.strKey.SetString(s) | |
| 371 | - | return d.strKey | |
| 372 | - | } | |
| 373 | - | ||
| 374 | - | // joinPath builds the NUL-joined representation of a key path in the | |
| 375 | - | // decoder's scratch buffer. The result is only valid until the next call. | |
| 376 | - | func (d *decoder) joinPath(parts []string) []byte { | |
| 377 | - | d.pathScratch = d.pathScratch[:0] | |
| 378 | - | for i, p := range parts { | |
| 379 | - | if i > 0 { | |
| 380 | - | d.pathScratch = append(d.pathScratch, 0) | |
| 381 | - | } | |
| 382 | - | d.pathScratch = append(d.pathScratch, p...) | |
| 383 | - | } | |
| 384 | - | return d.pathScratch | |
| 385 | - | } | |
| 386 | - | ||
| 387 | - | // arrayCount returns the number of elements appended so far to the array | |
| 388 | - | // table at the given path. | |
| 389 | - | func (d *decoder) arrayCount(key []byte) int { | |
| 390 | - | if d.arrayCounts == nil { | |
| 391 | - | return 0 | |
| 392 | - | } | |
| 393 | - | if p := d.arrayCounts[string(key)]; p != nil { // does not allocate | |
| 394 | - | return *p | |
| 395 | - | } | |
| 396 | - | return 0 | |
| 397 | - | } | |
| 398 | - | ||
| 399 | - | func (d *decoder) setArrayCount(key []byte, n int) { | |
| 400 | - | if d.arrayCounts == nil { | |
| 401 | - | d.arrayCounts = map[string]*int{} | |
| 402 | - | } | |
| 403 | - | if p := d.arrayCounts[string(key)]; p != nil { // does not allocate | |
| 404 | - | *p = n | |
| 405 | - | return | |
| 406 | - | } | |
| 407 | - | v := n | |
| 408 | - | d.arrayCounts[string(key)] = &v | |
| 409 | - | } | |
| 410 | - | ||
| 411 | - | // resetChildArrayCounts forgets the counts of all the array tables under | |
| 412 | - | // the given path, so that a new element starts fresh. | |
| 413 | - | func (d *decoder) resetChildArrayCounts(key []byte) { | |
| 414 | - | if len(d.arrayCounts) == 0 { | |
| 415 | - | return | |
| 416 | - | } | |
| 417 | - | for k, p := range d.arrayCounts { | |
| 418 | - | // Prefix match without building the prefix string: same bytes as | |
| 419 | - | // key, followed by the NUL separator. | |
| 420 | - | if len(k) > len(key) && k[len(key)] == 0 && k[:len(key)] == string(key) { | |
| 421 | - | // Zero instead of delete: the next element of the parent table | |
| 422 | - | // will reuse the slot without allocating a new key. | |
| 423 | - | *p = 0 | |
| 424 | - | } | |
| 425 | - | } | |
| 426 | - | } | |
| 427 | - | ||
| 428 | - | func (d *decoder) typeMismatchError(toml string, target reflect.Type, highlight []byte) error { | |
| 429 | - | return &typeMismatchError{ | |
| 430 | - | toml: toml, | |
| 431 | - | target: target, | |
| 432 | - | highlight: highlight, | |
| 433 | - | } | |
| 434 | - | } | |
| 435 | - | ||
| 436 | - | type typeMismatchError struct { | |
| 437 | - | toml string | |
| 438 | - | target reflect.Type | |
| 439 | - | highlight []byte | |
| 440 | - | // key is the TOML key being processed when the mismatch occurred. It is | |
| 441 | - | // populated lazily as the error propagates back up to the key-value | |
| 442 | - | // handler (see contextualizeError). | |
| 443 | - | key Key | |
| 444 | - | } | |
| 445 | - | ||
| 446 | - | func (e *typeMismatchError) Error() string { | |
| 447 | - | return fmt.Sprintf("cannot decode TOML %s into %s", e.toml, e.target) | |
| 448 | - | } | |
| 449 | - | ||
| 450 | - | // contextualizeError attaches the TOML key currently being processed to errors | |
| 451 | - | // raised while decoding a key-value expression, so that DecodeError.Key() | |
| 452 | - | // reports the offending key (e.g. on type mismatch errors). The current key is | |
| 453 | - | // reconstructed from d.path; when the table target is cached, d.path holds only | |
| 454 | - | // the key-value parts, so the table key prefix is prepended. This only runs on | |
| 455 | - | // the error path and adds no cost to successful decodes. | |
| 456 | - | func (d *decoder) contextualizeError(err error, withTableKey bool) error { | |
| 457 | - | var mm *typeMismatchError | |
| 458 | - | if errors.As(err, &mm) { | |
| 459 | - | if mm.key == nil { | |
| 460 | - | mm.key = d.currentKey(withTableKey) | |
| 461 | - | } | |
| 462 | - | return err | |
| 463 | - | } | |
| 464 | - | var perr *unstable.ParserError | |
| 465 | - | if errors.As(err, &perr) { | |
| 466 | - | if perr.Key == nil { | |
| 467 | - | perr.Key = d.currentKey(withTableKey) | |
| 468 | - | } | |
| 469 | - | } | |
| 470 | - | return err | |
| 471 | - | } | |
| 472 | - | ||
| 473 | - | // currentKey reconstructs the full TOML key being processed from the decoder's | |
| 474 | - | // path. When withTableKey is true, d.path contains only the key-value parts | |
| 475 | - | // (the table target is cached) and the table key is prepended. | |
| 476 | - | func (d *decoder) currentKey(withTableKey bool) Key { | |
| 477 | - | n := len(d.path) | |
| 478 | - | if withTableKey { | |
| 479 | - | n += len(d.tableKey) | |
| 480 | - | } | |
| 481 | - | key := make(Key, 0, n) | |
| 482 | - | if withTableKey { | |
| 483 | - | key = append(key, d.tableKey...) | |
| 484 | - | } | |
| 485 | - | for i := range d.path { | |
| 486 | - | key = append(key, d.path[i].str()) | |
| 487 | - | } | |
| 488 | - | return key | |
| 489 | - | } | |
| 490 | - | ||
| 491 | - | func (d *decoder) unmarshal(data []byte, v interface{}) error { | |
| 492 | - | r := reflect.ValueOf(v) | |
| 493 | - | if r.Kind() != reflect.Ptr { | |
| 494 | - | return fmt.Errorf("toml: decoding can only be performed into a pointer, not %s", r.Kind()) | |
| 495 | - | } | |
| 496 | - | if r.IsNil() { | |
| 497 | - | return errors.New("toml: decoding pointer target cannot be nil") | |
| 498 | - | } | |
| 499 | - | ||
| 500 | - | root := r.Elem() | |
| 501 | - | ||
| 502 | - | d.captureIdx = -1 | |
| 503 | - | d.p.Reset(data) | |
| 504 | - | ||
| 505 | - | // Fully generic targets (interface{} or map[string]interface{}) are | |
| 506 | - | // decoded straight into native Go maps and slices, with no reflection on | |
| 507 | - | // the document structure at all. This covers the common "decode arbitrary | |
| 508 | - | // TOML into a map" case, including every standard benchmark dataset. | |
| 509 | - | if !d.unmarshalerInterface { | |
| 510 | - | if k := root.Kind(); k == reflect.Interface || (k == reflect.Map && root.Type() == mapStringInterfaceType) { | |
| 511 | - | return d.unmarshalFused(root, data) | |
| 512 | - | } | |
| 513 | - | } | |
| 514 | - | ||
| 515 | - | // When the root target itself implements the Unmarshaler interface, the | |
| 516 | - | // whole document decodes into it. Open a capture spanning the entire | |
| 517 | - | // document up front: the top-level key-values then flow through the | |
| 518 | - | // existing capture branch and any tables attach to it via resumeCapture, | |
| 519 | - | // so UnmarshalTOML receives the assembled document exactly once. | |
| 520 | - | if d.unmarshalerInterface && hasUnmarshaler(root) { | |
| 521 | - | d.startRootCapture() | |
| 522 | - | } | |
| 523 | - | ||
| 524 | - | for d.p.NextExpression() { | |
| 525 | - | err := d.handleRootExpression(d.p.Expression(), root) | |
| 526 | - | if err != nil { | |
| 527 | - | return d.wrapError(data, err) | |
| 528 | - | } | |
| 529 | - | } | |
| 530 | - | if err := d.p.Error(); err != nil { | |
| 531 | - | var perr *unstable.ParserError | |
| 532 | - | if errors.As(err, &perr) { | |
| 533 | - | return wrapDecodeError(data, perr) | |
| 534 | - | } | |
| 535 | - | return err | |
| 536 | - | } | |
| 537 | - | ||
| 538 | - | d.flushTable() | |
| 539 | - | ||
| 540 | - | // Deliver the accumulated raw documents to the unmarshaler-interface | |
| 541 | - | // targets. | |
| 542 | - | for i := range d.captures { | |
| 543 | - | nv, err := d.resolveCapture(root, &d.captures[i], 0, false) | |
| 544 | - | if err != nil { | |
| 545 | - | return err | |
| 546 | - | } | |
| 547 | - | if nv.IsValid() { | |
| 548 | - | root.Set(nv) | |
| 549 | - | } | |
| 550 | - | } | |
| 551 | - | ||
| 552 | - | // An empty document into a generic target still initializes it. | |
| 553 | - | switch root.Kind() { | |
| 554 | - | case reflect.Map: | |
| 555 | - | if root.IsNil() { | |
| 556 | - | root.Set(reflect.MakeMap(root.Type())) | |
| 557 | - | } | |
| 558 | - | case reflect.Interface: | |
| 559 | - | if root.IsNil() { | |
| 560 | - | root.Set(reflect.ValueOf(map[string]interface{}{})) | |
| 561 | - | } | |
| 562 | - | default: | |
| 563 | - | } | |
| 564 | - | ||
| 565 | - | return d.strict.Error(data) | |
| 566 | - | } | |
| 567 | - | ||
| 568 | - | // setAnyKey assigns the value of a key-value into the native map m, following | |
| 569 | - | // the (possibly dotted) key and creating intermediate maps as needed. | |
| 570 | - | func (d *decoder) setAnyKey(m map[string]interface{}, key unstable.Iterator, value *unstable.Node) error { | |
| 571 | - | cur := m | |
| 572 | - | for key.Next() { | |
| 573 | - | name := d.intern(key.Node().Data) | |
| 574 | - | if key.IsLast() { | |
| 575 | - | av, err := d.decodeAny(value) | |
| 576 | - | if err != nil { | |
| 577 | - | return err | |
| 578 | - | } | |
| 579 | - | cur[name] = av | |
| 580 | - | return nil | |
| 581 | - | } | |
| 582 | - | cur = d.anyChildTable(cur, name) | |
| 583 | - | } | |
| 584 | - | return nil | |
| 585 | - | } | |
| 586 | - | ||
| 587 | - | // anyChildTable returns the child table at name within cur, creating it if | |
| 588 | - | // absent and descending into the current (last) element when an array table | |
| 589 | - | // occupies the slot. A non-container in the slot cannot occur for a document | |
| 590 | - | // the seen-tracker has accepted. | |
| 591 | - | func (d *decoder) anyChildTable(cur map[string]interface{}, name string) map[string]interface{} { | |
| 592 | - | switch v := cur[name].(type) { | |
| 593 | - | case map[string]interface{}: | |
| 594 | - | return v | |
| 595 | - | case []interface{}: | |
| 596 | - | if len(v) > 0 { | |
| 597 | - | if last, ok := v[len(v)-1].(map[string]interface{}); ok { | |
| 598 | - | return last | |
| 599 | - | } | |
| 600 | - | } | |
| 601 | - | } | |
| 602 | - | nm := map[string]interface{}{} | |
| 603 | - | cur[name] = nm | |
| 604 | - | return nm | |
| 605 | - | } | |
| 606 | - | ||
| 607 | - | // wrapError gives document context to errors generated while processing an | |
| 608 | - | // expression. | |
| 609 | - | func (d *decoder) wrapError(data []byte, err error) error { | |
| 610 | - | var perr *unstable.ParserError | |
| 611 | - | if errors.As(err, &perr) { | |
| 612 | - | return wrapDecodeError(data, perr) | |
| 613 | - | } | |
| 614 | - | var mm *typeMismatchError | |
| 615 | - | if errors.As(err, &mm) { | |
| 616 | - | return wrapDecodeError(data, &unstable.ParserError{ | |
| 617 | - | Highlight: mm.highlight, | |
| 618 | - | Message: mm.Error(), | |
| 619 | - | Key: mm.key, | |
| 620 | - | }) | |
| 621 | - | } | |
| 622 | - | return err | |
| 623 | - | } | |
| 624 | - | ||
| 625 | - | // keyedError turns a bare error raised while processing an expression into a | |
| 626 | - | // ParserError carrying the position and key of that expression, so that it is | |
| 627 | - | // reported as a DecodeError with context. It is used for the errors returned | |
| 628 | - | // by SeenTracker.CheckExpression (redefinitions and duplicate keys, see issue | |
| 629 | - | // #668) and for table placement errors raised by walkTable (see issue #806). | |
| 630 | - | // | |
| 631 | - | // The highlight spans the expression's key. Unlike Node.Raw, key nodes always | |
| 632 | - | // carry a Raw range, so this works for tables and array tables too (whose own | |
| 633 | - | // Raw range is not set by the parser). For a duplicate detected inside an | |
| 634 | - | // inline table, node is the enclosing key-value expression, so the error | |
| 635 | - | // points at that expression's key. | |
| 636 | - | func (d *decoder) keyedError(node *unstable.Node, err error) error { | |
| 637 | - | if err == nil { | |
| 638 | - | return nil | |
| 639 | - | } | |
| 640 | - | ||
| 641 | - | var key Key | |
| 642 | - | var start, end unstable.Range | |
| 643 | - | it := node.Key() | |
| 644 | - | for it.Next() { | |
| 645 | - | n := it.Node() | |
| 646 | - | key = append(key, string(n.Data)) | |
| 647 | - | if len(key) == 1 { | |
| 648 | - | start = n.Raw | |
| 649 | - | } | |
| 650 | - | end = n.Raw | |
| 651 | - | } | |
| 652 | - | ||
| 653 | - | var highlight []byte | |
| 654 | - | if len(key) > 0 { | |
| 655 | - | highlight = d.p.Raw(unstable.Range{ | |
| 656 | - | Offset: start.Offset, | |
| 657 | - | Length: end.Offset + end.Length - start.Offset, | |
| 658 | - | }) | |
| 659 | - | } | |
| 660 | - | ||
| 661 | - | return &unstable.ParserError{ | |
| 662 | - | Highlight: highlight, | |
| 663 | - | Message: strings.TrimPrefix(err.Error(), "toml: "), | |
| 664 | - | Key: key, | |
| 665 | - | } | |
| 666 | - | } | |
| 667 | - | ||
| 668 | - | func (d *decoder) handleRootExpression(expr *unstable.Node, root reflect.Value) error { | |
| 669 | - | first, err := d.seen.CheckExpression(expr) | |
| 670 | - | if err != nil { | |
| 671 | - | return d.keyedError(expr, err) | |
| 672 | - | } | |
| 673 | - | ||
| 674 | - | switch expr.Kind { | |
| 675 | - | case unstable.KeyValue: | |
| 676 | - | if d.skipUntilTable { | |
| 677 | - | return nil | |
| 678 | - | } | |
| 679 | - | if d.captureIdx >= 0 { | |
| 680 | - | d.captureKeyValue(expr) | |
| 681 | - | return nil | |
| 682 | - | } | |
| 683 | - | return d.handleKeyValueExpression(expr, root) | |
| 684 | - | case unstable.Table: | |
| 685 | - | d.flushTable() | |
| 686 | - | d.skipUntilTable = false | |
| 687 | - | d.captureIdx = -1 | |
| 688 | - | d.strict.EnterTable(expr) | |
| 689 | - | return d.handleTableExpression(expr, root, false, first) | |
| 690 | - | case unstable.ArrayTable: | |
| 691 | - | d.flushTable() | |
| 692 | - | d.skipUntilTable = false | |
| 693 | - | d.captureIdx = -1 | |
| 694 | - | d.strict.EnterTable(expr) | |
| 695 | - | return d.handleTableExpression(expr, root, true, first) | |
| 696 | - | default: | |
| 697 | - | return unstable.NewParserError(expr.Data, "unsupported expression kind %s", expr.Kind) | |
| 698 | - | } | |
| 699 | - | } | |
| 700 | - | ||
| 701 | - | // updateTableKey copies the parts of the key of a table expression into | |
| 702 | - | // tableKey. | |
| 703 | - | func (d *decoder) updateTableKey(expr *unstable.Node) { | |
| 704 | - | d.tableKey = d.tableKey[:0] | |
| 705 | - | it := expr.Key() | |
| 706 | - | for it.Next() { | |
| 707 | - | d.tableKey = append(d.tableKey, d.intern(it.Node().Data)) | |
| 708 | - | } | |
| 709 | - | } | |
| 710 | - | ||
| 711 | - | func (d *decoder) handleTableExpression(expr *unstable.Node, root reflect.Value, isArrayTable bool, first bool) error { | |
| 712 | - | d.updateTableKey(expr) | |
| 713 | - | ||
| 714 | - | // Check whether this table belongs to an exisiting raw capture (split | |
| 715 | - | // tables, or children of a table assigned to an Unmarshaler). | |
| 716 | - | if d.unmarshalerInterface { | |
| 717 | - | if d.resumeCapture(expr) { | |
| 718 | - | return nil | |
| 719 | - | } | |
| 720 | - | } | |
| 721 | - | ||
| 722 | - | // Reset the per-segment array indexes. | |
| 723 | - | d.segIdx = d.segIdx[:0] | |
| 724 | - | for i := 0; i <= len(d.tableKey); i++ { | |
| 725 | - | d.segIdx = append(d.segIdx, -1) | |
| 726 | - | } | |
| 727 | - | ||
| 728 | - | return d.walkTable(root, expr, isArrayTable, first) | |
| 729 | - | } | |
| 730 | - | ||
| 731 | - | // newContainerElem returns a fresh element for a slice of the given element | |
| 732 | - | // type. Plain interface elements start out as an empty table. | |
| 733 | - | func newContainerElem(et reflect.Type) reflect.Value { | |
| 734 | - | if et == interfaceType { | |
| 735 | - | return reflect.ValueOf(map[string]interface{}{}) | |
| 736 | - | } | |
| 737 | - | return reflect.New(et).Elem() | |
| 738 | - | } | |
| 739 | - | ||
| 740 | - | // walkTable processes a [table] or [[array table]] header: it creates the | |
| 741 | - | // intermediate containers, appends array-table elements, applies the strict | |
| 742 | - | // policy, registers unmarshaler-interface captures, and caches the target | |
| 743 | - | // container so that the key-values that follow are stored directly. | |
| 744 | - | // | |
| 745 | - | // Map values are not addressable: when one needs in-place mutations (struct | |
| 746 | - | // or array values), a copy is made and registered to be stored back when the | |
| 747 | - | // table changes (see flushTable). Maps and slices are references and are | |
| 748 | - | // traversed without copies. | |
| 749 | - | func (d *decoder) walkTable(root reflect.Value, expr *unstable.Node, isArrayTable bool, first bool) error { | |
| 750 | - | v := root | |
| 751 | - | pf := slotWriter{kind: 1, slot: root} | |
| 752 | - | idx := 0 | |
| 753 | - | ||
| 754 | - | walk: | |
| 755 | - | for { | |
| 756 | - | // Dereference pointers in place. | |
| 757 | - | for v.Kind() == reflect.Ptr { | |
| 758 | - | if v.IsNil() { | |
| 759 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 760 | - | } | |
| 761 | - | elem := v.Elem() | |
| 762 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 763 | - | v = elem | |
| 764 | - | } | |
| 765 | - | ||
| 766 | - | // Tables assigned to a type implementing the unmarshaler interface | |
| 767 | - | // are captured as raw bytes, delivered once the document is read. | |
| 768 | - | if d.unmarshalerInterface && hasUnmarshaler(v) { | |
| 769 | - | d.startCapture(idx, expr) | |
| 770 | - | return nil | |
| 771 | - | } | |
| 772 | - | ||
| 773 | - | if idx >= len(d.tableKey) { | |
| 774 | - | break walk | |
| 775 | - | } | |
| 776 | - | ||
| 777 | - | name := d.tableKey[idx] | |
| 778 | - | ||
| 779 | - | switch v.Kind() { | |
| 780 | - | case reflect.Interface: | |
| 781 | - | if !v.IsNil() { | |
| 782 | - | c := v.Elem() | |
| 783 | - | if k := c.Kind(); k == reflect.Map || k == reflect.Slice { | |
| 784 | - | // Reference types: mutations are visible through the | |
| 785 | - | // existing interface value. | |
| 786 | - | v = c | |
| 787 | - | continue | |
| 788 | - | } | |
| 789 | - | } | |
| 790 | - | // Anything else is replaced by a fresh generic map. | |
| 791 | - | if !mapStringInterfaceType.AssignableTo(v.Type()) { | |
| 792 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Type())) | |
| 793 | - | } | |
| 794 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |
| 795 | - | d.storeSlot(&pf, fresh) | |
| 796 | - | v = fresh | |
| 797 | - | case reflect.Slice: | |
| 798 | - | if v.Len() == 0 { | |
| 799 | - | // Implicit creation of the first element: the array table | |
| 800 | - | // that would create it has not been seen yet (issue 995). | |
| 801 | - | if v.IsNil() { | |
| 802 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |
| 803 | - | } | |
| 804 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |
| 805 | - | d.storeSlot(&pf, v) | |
| 806 | - | } | |
| 807 | - | n := v.Len() - 1 | |
| 808 | - | d.segIdx[idx] = n | |
| 809 | - | elem := v.Index(n) | |
| 810 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 811 | - | v = elem | |
| 812 | - | case reflect.Array: | |
| 813 | - | key := d.joinPath(d.tableKey[:idx]) | |
| 814 | - | cnt := d.arrayCount(key) | |
| 815 | - | if cnt == 0 { | |
| 816 | - | cnt = 1 | |
| 817 | - | d.setArrayCount(key, 1) | |
| 818 | - | } | |
| 819 | - | if cnt > v.Len() { | |
| 820 | - | return d.keyedError(expr, fmt.Errorf("cannot reach element %d of array of size %d", cnt-1, v.Len())) | |
| 821 | - | } | |
| 822 | - | d.segIdx[idx] = cnt - 1 | |
| 823 | - | elem := v.Index(cnt - 1) | |
| 824 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 825 | - | v = elem | |
| 826 | - | case reflect.Map: | |
| 827 | - | if v.IsNil() { | |
| 828 | - | nm := reflect.MakeMap(v.Type()) | |
| 829 | - | d.storeSlot(&pf, nm) | |
| 830 | - | v = nm | |
| 831 | - | } | |
| 832 | - | var key reflect.Value | |
| 833 | - | var w slotWriter | |
| 834 | - | if v.Type().Key() == stringType { | |
| 835 | - | key = d.stringMapKey(name) | |
| 836 | - | w = slotWriter{kind: 3, m: v, ks: name} | |
| 837 | - | } else { | |
| 838 | - | k, err := makeMapKey(v.Type().Key(), name) | |
| 839 | - | if err != nil { | |
| 840 | - | return err | |
| 841 | - | } | |
| 842 | - | key = k | |
| 843 | - | w = slotWriter{kind: 2, m: v, k: k} | |
| 844 | - | } | |
| 845 | - | ||
| 846 | - | elem := v.MapIndex(key) | |
| 847 | - | ||
| 848 | - | // The last part of an array table is finalized as a slice | |
| 849 | - | // container: do not materialize a table for it. | |
| 850 | - | if isArrayTable && idx == len(d.tableKey)-1 { | |
| 851 | - | et := v.Type().Elem() | |
| 852 | - | switch et.Kind() { | |
| 853 | - | case reflect.Interface, reflect.Slice, reflect.Array: | |
| 854 | - | if elem.IsValid() { | |
| 855 | - | v = elem | |
| 856 | - | } else { | |
| 857 | - | v = reflect.Zero(et) | |
| 858 | - | } | |
| 859 | - | pf = w | |
| 860 | - | idx++ | |
| 861 | - | continue | |
| 862 | - | default: | |
| 863 | - | } | |
| 864 | - | } | |
| 865 | - | ||
| 866 | - | if elem.IsValid() { | |
| 867 | - | ce := elem | |
| 868 | - | ceIface := false | |
| 869 | - | if ce.Kind() == reflect.Interface { | |
| 870 | - | ceIface = true | |
| 871 | - | if !ce.IsNil() { | |
| 872 | - | ce = ce.Elem() | |
| 873 | - | } | |
| 874 | - | } | |
| 875 | - | switch ce.Kind() { | |
| 876 | - | case reflect.Map, reflect.Slice: | |
| 877 | - | pf = w | |
| 878 | - | v = ce | |
| 879 | - | case reflect.Ptr: | |
| 880 | - | if ce.IsNil() { | |
| 881 | - | np := reflect.New(ce.Type().Elem()) | |
| 882 | - | d.storeSlot(&w, np) | |
| 883 | - | ce = np | |
| 884 | - | } | |
| 885 | - | pf = w | |
| 886 | - | v = ce | |
| 887 | - | case reflect.Struct, reflect.Array: | |
| 888 | - | if ceIface { | |
| 889 | - | // Interface-held non-generic content is replaced. | |
| 890 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |
| 891 | - | d.storeSlot(&w, fresh) | |
| 892 | - | pf = w | |
| 893 | - | v = fresh | |
| 894 | - | } else { | |
| 895 | - | tmp := reflect.New(elem.Type()).Elem() | |
| 896 | - | tmp.Set(elem) | |
| 897 | - | d.tableFlush = append(d.tableFlush, flushOp{w: w, val: tmp}) | |
| 898 | - | pf = slotWriter{kind: 1, slot: tmp} | |
| 899 | - | v = tmp | |
| 900 | - | } | |
| 901 | - | default: | |
| 902 | - | if !ceIface { | |
| 903 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", ce.Type())) | |
| 904 | - | } | |
| 905 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |
| 906 | - | d.storeSlot(&w, fresh) | |
| 907 | - | pf = w | |
| 908 | - | v = fresh | |
| 909 | - | } | |
| 910 | - | } else { | |
| 911 | - | et := v.Type().Elem() | |
| 912 | - | switch et.Kind() { | |
| 913 | - | case reflect.Interface: | |
| 914 | - | if !mapStringInterfaceType.AssignableTo(et) { | |
| 915 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", et)) | |
| 916 | - | } | |
| 917 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |
| 918 | - | d.storeSlot(&w, fresh) | |
| 919 | - | pf = w | |
| 920 | - | v = fresh | |
| 921 | - | case reflect.Map: | |
| 922 | - | nm := reflect.MakeMap(et) | |
| 923 | - | d.storeSlot(&w, nm) | |
| 924 | - | pf = w | |
| 925 | - | v = nm | |
| 926 | - | case reflect.Ptr: | |
| 927 | - | np := reflect.New(et.Elem()) | |
| 928 | - | d.storeSlot(&w, np) | |
| 929 | - | pf = w | |
| 930 | - | v = np | |
| 931 | - | case reflect.Struct, reflect.Array, reflect.Slice: | |
| 932 | - | tmp := reflect.New(et).Elem() | |
| 933 | - | d.tableFlush = append(d.tableFlush, flushOp{w: w, val: tmp}) | |
| 934 | - | pf = slotWriter{kind: 1, slot: tmp} | |
| 935 | - | v = tmp | |
| 936 | - | default: | |
| 937 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", et)) | |
| 938 | - | } | |
| 939 | - | } | |
| 940 | - | idx++ | |
| 941 | - | case reflect.Struct: | |
| 942 | - | plan := planForType(v.Type()) | |
| 943 | - | f, found := plan.lookup(name) | |
| 944 | - | if !found { | |
| 945 | - | d.strict.MissingTable(expr) | |
| 946 | - | d.skipUntilTable = true | |
| 947 | - | return nil | |
| 948 | - | } | |
| 949 | - | fv, err := fieldByIndexAlloc(v, f.index) | |
| 950 | - | if err != nil { | |
| 951 | - | return err | |
| 952 | - | } | |
| 953 | - | pf = slotWriter{kind: 1, slot: fv} | |
| 954 | - | v = fv | |
| 955 | - | idx++ | |
| 956 | - | default: | |
| 957 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Kind())) | |
| 958 | - | } | |
| 959 | - | } | |
| 960 | - | ||
| 961 | - | if isArrayTable { | |
| 962 | - | akey := d.joinPath(d.tableKey) | |
| 963 | - | d.resetChildArrayCounts(akey) | |
| 964 | - | ||
| 965 | - | // Unwrap an interface container. | |
| 966 | - | if v.Kind() == reflect.Interface { | |
| 967 | - | var slice []interface{} | |
| 968 | - | if !v.IsNil() { | |
| 969 | - | if s, ok := v.Elem().Interface().([]interface{}); ok { | |
| 970 | - | slice = s | |
| 971 | - | } | |
| 972 | - | } | |
| 973 | - | if first { | |
| 974 | - | slice = slice[:0] | |
| 975 | - | } | |
| 976 | - | m := map[string]interface{}{} | |
| 977 | - | slice = append(slice, m) | |
| 978 | - | sv := reflect.ValueOf(slice) | |
| 979 | - | d.storeSlot(&pf, sv) | |
| 980 | - | d.setArrayCount(akey, len(slice)) | |
| 981 | - | d.segIdx[len(d.tableKey)] = len(slice) - 1 | |
| 982 | - | d.tableTarget = reflect.ValueOf(m) | |
| 983 | - | d.tableParentSlot = slotWriter{kind: 1, slot: sv.Index(len(slice) - 1)} | |
| 984 | - | d.tableTargetValid = true | |
| 985 | - | return nil | |
| 986 | - | } | |
| 987 | - | ||
| 988 | - | switch v.Kind() { | |
| 989 | - | case reflect.Slice: | |
| 990 | - | if v.IsNil() { | |
| 991 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |
| 992 | - | } else if first { | |
| 993 | - | v = v.Slice(0, 0) | |
| 994 | - | } | |
| 995 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |
| 996 | - | d.storeSlot(&pf, v) | |
| 997 | - | n := v.Len() - 1 | |
| 998 | - | d.setArrayCount(akey, n+1) | |
| 999 | - | d.segIdx[len(d.tableKey)] = n | |
| 1000 | - | elem := v.Index(n) | |
| 1001 | - | if d.unmarshalerInterface && hasUnmarshaler(elem) { | |
| 1002 | - | d.startCapture(len(d.tableKey), expr) | |
| 1003 | - | return nil | |
| 1004 | - | } | |
| 1005 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 1006 | - | v = elem | |
| 1007 | - | case reflect.Array: | |
| 1008 | - | cnt := d.arrayCount(akey) | |
| 1009 | - | if first { | |
| 1010 | - | cnt = 0 | |
| 1011 | - | } | |
| 1012 | - | if cnt >= v.Len() { | |
| 1013 | - | return d.keyedError(expr, fmt.Errorf("array of size %d is too small to store this array table", v.Len())) | |
| 1014 | - | } | |
| 1015 | - | v.Index(cnt).Set(reflect.Zero(v.Type().Elem())) | |
| 1016 | - | d.setArrayCount(akey, cnt+1) | |
| 1017 | - | d.segIdx[len(d.tableKey)] = cnt | |
| 1018 | - | elem := v.Index(cnt) | |
| 1019 | - | if d.unmarshalerInterface && hasUnmarshaler(elem) { | |
| 1020 | - | d.startCapture(len(d.tableKey), expr) | |
| 1021 | - | return nil | |
| 1022 | - | } | |
| 1023 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 1024 | - | v = elem | |
| 1025 | - | default: | |
| 1026 | - | return d.keyedError(expr, fmt.Errorf("cannot store an array table in a %s", v.Kind())) | |
| 1027 | - | } | |
| 1028 | - | } | |
| 1029 | - | ||
| 1030 | - | // Settle on the concrete container for the key-values that follow. | |
| 1031 | - | for { | |
| 1032 | - | switch v.Kind() { | |
| 1033 | - | case reflect.Ptr: | |
| 1034 | - | if v.IsNil() { | |
| 1035 | - | if !v.CanSet() { | |
| 1036 | - | return nil | |
| 1037 | - | } | |
| 1038 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 1039 | - | } | |
| 1040 | - | elem := v.Elem() | |
| 1041 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 1042 | - | v = elem | |
| 1043 | - | continue | |
| 1044 | - | case reflect.Interface: | |
| 1045 | - | if !v.IsNil() { | |
| 1046 | - | c := v.Elem() | |
| 1047 | - | if c.Type() == mapStringInterfaceType || c.Type() == sliceInterfaceType { | |
| 1048 | - | v = c | |
| 1049 | - | continue | |
| 1050 | - | } | |
| 1051 | - | } | |
| 1052 | - | if !mapStringInterfaceType.AssignableTo(v.Type()) { | |
| 1053 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Type())) | |
| 1054 | - | } | |
| 1055 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |
| 1056 | - | d.storeSlot(&pf, fresh) | |
| 1057 | - | v = fresh | |
| 1058 | - | continue | |
| 1059 | - | case reflect.Slice: | |
| 1060 | - | if v.Len() == 0 { | |
| 1061 | - | if v.IsNil() { | |
| 1062 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |
| 1063 | - | } | |
| 1064 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |
| 1065 | - | d.storeSlot(&pf, v) | |
| 1066 | - | } | |
| 1067 | - | n := v.Len() - 1 | |
| 1068 | - | d.segIdx[len(d.tableKey)] = n | |
| 1069 | - | elem := v.Index(n) | |
| 1070 | - | pf = slotWriter{kind: 1, slot: elem} | |
| 1071 | - | v = elem | |
| 1072 | - | continue | |
| 1073 | - | case reflect.Map, reflect.Struct: | |
| 1074 | - | d.tableTarget = v | |
| 1075 | - | d.tableParentSlot = pf | |
| 1076 | - | d.tableTargetValid = true | |
| 1077 | - | return nil | |
| 1078 | - | default: | |
| 1079 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Kind())) | |
| 1080 | - | } | |
| 1081 | - | } | |
| 1082 | - | } | |
| 1083 | - | ||
| 1084 | - | // resumeCapture looks for an existing capture this table expression belongs | |
| 1085 | - | // to. It returns true if the expression was consumed. | |
| 1086 | - | func (d *decoder) resumeCapture(expr *unstable.Node) bool { | |
| 1087 | - | // Iterate in reverse, so that tables attach to the latest element of | |
| 1088 | - | // array tables. | |
| 1089 | - | for i := len(d.captures) - 1; i >= 0; i-- { | |
| 1090 | - | c := &d.captures[i] | |
| 1091 | - | if len(d.tableKey) < len(c.names) { | |
| 1092 | - | continue | |
| 1093 | - | } | |
| 1094 | - | if expr.Kind == unstable.ArrayTable && len(d.tableKey) == len(c.names) { | |
| 1095 | - | // A new element of an array table is not part of the capture of | |
| 1096 | - | // the previous element. | |
| 1097 | - | continue | |
| 1098 | - | } | |
| 1099 | - | match := true | |
| 1100 | - | for j, p := range c.names { | |
| 1101 | - | if d.tableKey[j] != p { | |
| 1102 | - | match = false | |
| 1103 | - | break | |
| 1104 | - | } | |
| 1105 | - | } | |
| 1106 | - | if !match { | |
| 1107 | - | continue | |
| 1108 | - | } | |
| 1109 | - | d.captureIdx = i | |
| 1110 | - | if len(d.tableKey) > len(c.names) { | |
| 1111 | - | d.appendCaptureHeader(c, expr, len(c.names)) | |
| 1112 | - | } | |
| 1113 | - | return true | |
| 1114 | - | } | |
| 1115 | - | return false | |
| 1116 | - | } | |
| 1117 | - | ||
| 1118 | - | // appendCaptureHeader writes the table header of expr in the capture buffer, | |
| 1119 | - | // adjusted to be relative to the capture root. | |
| 1120 | - | func (d *decoder) appendCaptureHeader(c *rawCapture, expr *unstable.Node, skip int) { | |
| 1121 | - | c.buf = append(c.buf, '[') | |
| 1122 | - | if expr.Kind == unstable.ArrayTable { | |
| 1123 | - | c.buf = append(c.buf, '[') | |
| 1124 | - | } | |
| 1125 | - | c.buf = append(c.buf, d.rawKeySuffix(expr, skip)...) | |
| 1126 | - | c.buf = append(c.buf, ']') | |
| 1127 | - | if expr.Kind == unstable.ArrayTable { | |
| 1128 | - | c.buf = append(c.buf, ']') | |
| 1129 | - | } | |
| 1130 | - | c.buf = append(c.buf, '\n') | |
| 1131 | - | } | |
| 1132 | - | ||
| 1133 | - | // rawKeySuffix returns the raw bytes of the key of the expression, skipping | |
| 1134 | - | // the first n parts. | |
| 1135 | - | func (d *decoder) rawKeySuffix(expr *unstable.Node, n int) []byte { | |
| 1136 | - | it := expr.Key() | |
| 1137 | - | idx := 0 | |
| 1138 | - | var start, end unstable.Range | |
| 1139 | - | for it.Next() { | |
| 1140 | - | if idx >= n { | |
| 1141 | - | r := it.Node().Raw | |
| 1142 | - | if start.Length == 0 && start.Offset == 0 && idx == n { | |
| 1143 | - | start = r | |
| 1144 | - | } | |
| 1145 | - | end = r | |
| 1146 | - | } | |
| 1147 | - | idx++ | |
| 1148 | - | } | |
| 1149 | - | return d.p.Data()[start.Offset : end.Offset+end.Length] | |
| 1150 | - | } | |
| 1151 | - | ||
| 1152 | - | // startCapture registers a new capture for the table at the given path | |
| 1153 | - | // (prefix of tableKey). | |
| 1154 | - | func (d *decoder) startCapture(pathLen int, expr *unstable.Node) { | |
| 1155 | - | names := make([]string, pathLen) | |
| 1156 | - | copy(names, d.tableKey[:pathLen]) | |
| 1157 | - | indexes := make([]int, pathLen+1) | |
| 1158 | - | copy(indexes, d.segIdx[:pathLen+1]) | |
| 1159 | - | d.captures = append(d.captures, rawCapture{ | |
| 1160 | - | names: names, | |
| 1161 | - | indexes: indexes, | |
| 1162 | - | }) | |
| 1163 | - | d.captureIdx = len(d.captures) - 1 | |
| 1164 | - | if pathLen < len(d.tableKey) { | |
| 1165 | - | d.appendCaptureHeader(&d.captures[d.captureIdx], expr, pathLen) | |
| 1166 | - | } | |
| 1167 | - | } | |
| 1168 | - | ||
| 1169 | - | // startRootCapture opens a capture covering the entire document, used when the | |
| 1170 | - | // root target itself implements the Unmarshaler interface. It is opened before | |
| 1171 | - | // reading any expression: top-level key-values are then accumulated through the | |
| 1172 | - | // regular capture branch, and its empty name path matches every table in | |
| 1173 | - | // resumeCapture, so the whole document is handed to UnmarshalTOML once. The | |
| 1174 | - | // single index slot is -1 because the root is never reached through an array | |
| 1175 | - | // table. | |
| 1176 | - | func (d *decoder) startRootCapture() { | |
| 1177 | - | d.captures = append(d.captures, rawCapture{indexes: []int{-1}}) | |
| 1178 | - | d.captureIdx = len(d.captures) - 1 | |
| 1179 | - | } | |
| 1180 | - | ||
| 1181 | - | // resolveCapture walks back to the target of a capture and delivers the | |
| 1182 | - | // accumulated raw bytes to its UnmarshalTOML implementation. | |
| 1183 | - | func (d *decoder) resolveCapture(v reflect.Value, c *rawCapture, idx int, indexed bool) (reflect.Value, error) { | |
| 1184 | - | if v.Kind() == reflect.Ptr { | |
| 1185 | - | if v.Type().Implements(unmarshalerType) && idx == len(c.names) { | |
| 1186 | - | u, _ := unmarshalerOf(v) | |
| 1187 | - | return v, u.UnmarshalTOML(c.buf) | |
| 1188 | - | } | |
| 1189 | - | if v.IsNil() { | |
| 1190 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 1191 | - | } | |
| 1192 | - | nv, err := d.resolveCapture(v.Elem(), c, idx, indexed) | |
| 1193 | - | if err != nil { | |
| 1194 | - | return reflect.Value{}, err | |
| 1195 | - | } | |
| 1196 | - | if nv.IsValid() { | |
| 1197 | - | v.Elem().Set(nv) | |
| 1198 | - | } | |
| 1199 | - | return v, nil | |
| 1200 | - | } | |
| 1201 | - | ||
| 1202 | - | if !indexed && (v.Kind() == reflect.Slice || v.Kind() == reflect.Array) && c.indexes[idx] >= 0 { | |
| 1203 | - | i := c.indexes[idx] | |
| 1204 | - | if i >= v.Len() { | |
| 1205 | - | return reflect.Value{}, errors.New("toml: internal error: capture index out of range") | |
| 1206 | - | } | |
| 1207 | - | elem := v.Index(i) | |
| 1208 | - | nv, err := d.resolveCapture(elem, c, idx, true) | |
| 1209 | - | if err != nil { | |
| 1210 | - | return reflect.Value{}, err | |
| 1211 | - | } | |
| 1212 | - | if nv.IsValid() { | |
| 1213 | - | elem.Set(nv) | |
| 1214 | - | } | |
| 1215 | - | return v, nil | |
| 1216 | - | } | |
| 1217 | - | ||
| 1218 | - | if idx == len(c.names) { | |
| 1219 | - | u, ok := unmarshalerOf(v) | |
| 1220 | - | if !ok { | |
| 1221 | - | return reflect.Value{}, errors.New("toml: internal error: capture target does not implement UnmarshalTOML") | |
| 1222 | - | } | |
| 1223 | - | return v, u.UnmarshalTOML(c.buf) | |
| 1224 | - | } | |
| 1225 | - | ||
| 1226 | - | name := c.names[idx] | |
| 1227 | - | ||
| 1228 | - | switch v.Kind() { | |
| 1229 | - | case reflect.Struct: | |
| 1230 | - | plan := planForType(v.Type()) | |
| 1231 | - | f, found := plan.lookup(name) | |
| 1232 | - | if !found { | |
| 1233 | - | return v, nil | |
| 1234 | - | } | |
| 1235 | - | fv, err := fieldByIndexAlloc(v, f.index) | |
| 1236 | - | if err != nil { | |
| 1237 | - | return reflect.Value{}, err | |
| 1238 | - | } | |
| 1239 | - | nv, err := d.resolveCapture(fv, c, idx+1, false) | |
| 1240 | - | if err != nil { | |
| 1241 | - | return reflect.Value{}, err | |
| 1242 | - | } | |
| 1243 | - | if nv.IsValid() && fv.CanSet() { | |
| 1244 | - | fv.Set(nv) | |
| 1245 | - | } | |
| 1246 | - | return v, nil | |
| 1247 | - | case reflect.Map: | |
| 1248 | - | key, err := makeMapKey(v.Type().Key(), name) | |
| 1249 | - | if err != nil { | |
| 1250 | - | return reflect.Value{}, err | |
| 1251 | - | } | |
| 1252 | - | if v.IsNil() { | |
| 1253 | - | v = reflect.MakeMap(v.Type()) | |
| 1254 | - | } | |
| 1255 | - | elem := reflect.New(v.Type().Elem()).Elem() | |
| 1256 | - | if existing := v.MapIndex(key); existing.IsValid() { | |
| 1257 | - | elem.Set(existing) | |
| 1258 | - | } | |
| 1259 | - | nv, err := d.resolveCapture(elem, c, idx+1, false) | |
| 1260 | - | if err != nil { | |
| 1261 | - | return reflect.Value{}, err | |
| 1262 | - | } | |
| 1263 | - | if nv.IsValid() { | |
| 1264 | - | v.SetMapIndex(key, nv) | |
| 1265 | - | } | |
| 1266 | - | return v, nil | |
| 1267 | - | case reflect.Interface: | |
| 1268 | - | elem := elemOrNewMap(v) | |
| 1269 | - | nv, err := d.resolveCapture(elem, c, idx, indexed) | |
| 1270 | - | if err != nil || !nv.IsValid() { | |
| 1271 | - | return reflect.Value{}, err | |
| 1272 | - | } | |
| 1273 | - | return nv, nil | |
| 1274 | - | default: | |
| 1275 | - | return reflect.Value{}, fmt.Errorf("toml: internal error: cannot resolve capture target through %s", v.Kind()) | |
| 1276 | - | } | |
| 1277 | - | } | |
| 1278 | - | ||
| 1279 | - | // captureKeyValue appends the raw bytes of a key-value expression to the | |
| 1280 | - | // current capture. | |
| 1281 | - | func (d *decoder) captureKeyValue(expr *unstable.Node) { | |
| 1282 | - | c := &d.captures[d.captureIdx] | |
| 1283 | - | c.buf = append(c.buf, d.p.Raw(expr.Raw)...) | |
| 1284 | - | c.buf = append(c.buf, '\n') | |
| 1285 | - | } | |
| 1286 | - | ||
| 1287 | - | // hasUnmarshaler reports whether v can provide an unstable.Unmarshaler, | |
| 1288 | - | // without allocating anything. | |
| 1289 | - | func hasUnmarshaler(v reflect.Value) bool { | |
| 1290 | - | t := v.Type() | |
| 1291 | - | return t.Implements(unmarshalerType) || (v.CanAddr() && reflect.PtrTo(t).Implements(unmarshalerType)) | |
| 1292 | - | } | |
| 1293 | - | ||
| 1294 | - | // makeMapKey converts a TOML key into a value usable as the given map key | |
| 1295 | - | // type. | |
| 1296 | - | func makeMapKey(kt reflect.Type, name string) (reflect.Value, error) { | |
| 1297 | - | switch kt.Kind() { | |
| 1298 | - | case reflect.String: | |
| 1299 | - | return reflect.ValueOf(name).Convert(kt), nil | |
| 1300 | - | case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | |
| 1301 | - | i, err := strconv.ParseInt(name, 10, 64) | |
| 1302 | - | if err != nil { | |
| 1303 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |
| 1304 | - | } | |
| 1305 | - | k := reflect.New(kt).Elem() | |
| 1306 | - | if k.OverflowInt(i) { | |
| 1307 | - | return reflect.Value{}, fmt.Errorf("toml: map key %q overflows %s", name, kt) | |
| 1308 | - | } | |
| 1309 | - | k.SetInt(i) | |
| 1310 | - | return k, nil | |
| 1311 | - | case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: | |
| 1312 | - | u, err := strconv.ParseUint(name, 10, 64) | |
| 1313 | - | if err != nil { | |
| 1314 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |
| 1315 | - | } | |
| 1316 | - | k := reflect.New(kt).Elem() | |
| 1317 | - | if k.OverflowUint(u) { | |
| 1318 | - | return reflect.Value{}, fmt.Errorf("toml: map key %q overflows %s", name, kt) | |
| 1319 | - | } | |
| 1320 | - | k.SetUint(u) | |
| 1321 | - | return k, nil | |
| 1322 | - | case reflect.Float32, reflect.Float64: | |
| 1323 | - | f, err := strconv.ParseFloat(name, 64) | |
| 1324 | - | if err != nil { | |
| 1325 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |
| 1326 | - | } | |
| 1327 | - | k := reflect.New(kt).Elem() | |
| 1328 | - | k.SetFloat(f) | |
| 1329 | - | return k, nil | |
| 1330 | - | case reflect.Ptr: | |
| 1331 | - | if kt.Implements(textUnmarshalerType) { | |
| 1332 | - | k := reflect.New(kt.Elem()) | |
| 1333 | - | err := k.Interface().(encoding.TextUnmarshaler).UnmarshalText([]byte(name)) | |
| 1334 | - | if err != nil { | |
| 1335 | - | return reflect.Value{}, fmt.Errorf("toml: error unmarshaling map key %q: %w", name, err) | |
| 1336 | - | } | |
| 1337 | - | return k, nil | |
| 1338 | - | } | |
| 1339 | - | default: | |
| 1340 | - | if reflect.PtrTo(kt).Implements(textUnmarshalerType) { | |
| 1341 | - | k := reflect.New(kt) | |
| 1342 | - | err := k.Interface().(encoding.TextUnmarshaler).UnmarshalText([]byte(name)) | |
| 1343 | - | if err != nil { | |
| 1344 | - | return reflect.Value{}, fmt.Errorf("toml: error unmarshaling map key %q: %w", name, err) | |
| 1345 | - | } | |
| 1346 | - | return k.Elem(), nil | |
| 1347 | - | } | |
| 1348 | - | } | |
| 1349 | - | return reflect.Value{}, fmt.Errorf("toml: cannot decode a key into a map with key type %s", kt) | |
| 1350 | - | } | |
| 1351 | - | ||
| 1352 | - | // elemOrNewMap unwraps an interface value to descend into it. Contents that | |
| 1353 | - | // can hold a table (generic maps and slices) are kept; anything else is | |
| 1354 | - | // replaced by a fresh map[string]interface{}. Maps and slices are reference | |
| 1355 | - | // types: they are returned directly, not copied. | |
| 1356 | - | func elemOrNewMap(v reflect.Value) reflect.Value { | |
| 1357 | - | if !v.IsNil() { | |
| 1358 | - | concrete := v.Elem() | |
| 1359 | - | t := concrete.Type() | |
| 1360 | - | if t == mapStringInterfaceType || t == sliceInterfaceType { | |
| 1361 | - | return concrete | |
| 1362 | - | } | |
| 1363 | - | } | |
| 1364 | - | return reflect.ValueOf(map[string]interface{}{}) | |
| 1365 | - | } | |
| 1366 | - | ||
| 1367 | - | // handleKeyValueExpression stores the value of a top-level key-value | |
| 1368 | - | // expression, relative to the current table. | |
| 1369 | - | func (d *decoder) handleKeyValueExpression(expr *unstable.Node, root reflect.Value) error { | |
| 1370 | - | d.path = d.path[:0] | |
| 1371 | - | ||
| 1372 | - | target := root | |
| 1373 | - | useCache := d.tableTargetValid && len(d.tableKey) > 0 | |
| 1374 | - | if useCache { | |
| 1375 | - | target = d.tableTarget | |
| 1376 | - | } else { | |
| 1377 | - | for _, name := range d.tableKey { | |
| 1378 | - | d.path = append(d.path, pathPart{name: name}) | |
| 1379 | - | } | |
| 1380 | - | } | |
| 1381 | - | ||
| 1382 | - | it := expr.Key() | |
| 1383 | - | for it.Next() { | |
| 1384 | - | d.path = append(d.path, pathPart{node: it.Node()}) | |
| 1385 | - | } | |
| 1386 | - | ||
| 1387 | - | nv, err := d.descend(target, d.path, 0, expr, expr.Value()) | |
| 1388 | - | if err != nil { | |
| 1389 | - | return d.contextualizeError(err, useCache) | |
| 1390 | - | } | |
| 1391 | - | if !nv.IsValid() { | |
| 1392 | - | return nil | |
| 1393 | - | } | |
| 1394 | - | if useCache { | |
| 1395 | - | // The target may have been replaced (e.g. a nil map allocated): | |
| 1396 | - | // re-link it into its parent. | |
| 1397 | - | if nv.Kind() == reflect.Map && nv.Pointer() != d.tableTarget.Pointer() { | |
| 1398 | - | d.storeSlot(&d.tableParentSlot, nv) | |
| 1399 | - | d.tableTarget = nv | |
| 1400 | - | } | |
| 1401 | - | } else { | |
| 1402 | - | if root.CanSet() { | |
| 1403 | - | root.Set(nv) | |
| 1404 | - | } | |
| 1405 | - | } | |
| 1406 | - | return nil | |
| 1407 | - | } | |
| 1408 | - | ||
| 1409 | - | // descend walks the given key path into v, and assigns the value at the | |
| 1410 | - | // end. It returns the value to store back at this level. An invalid value | |
| 1411 | - | // means nothing should be stored (e.g. unknown field). | |
| 1412 | - | func (d *decoder) descend(v reflect.Value, path []pathPart, idx int, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |
| 1413 | - | if idx == len(path) { | |
| 1414 | - | return d.assignValue(v, expr, value) | |
| 1415 | - | } | |
| 1416 | - | ||
| 1417 | - | if v.Kind() == reflect.Ptr { | |
| 1418 | - | if v.IsNil() { | |
| 1419 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 1420 | - | } | |
| 1421 | - | nv, err := d.descend(v.Elem(), path, idx, expr, value) | |
| 1422 | - | if err != nil || !nv.IsValid() { | |
| 1423 | - | return reflect.Value{}, err | |
| 1424 | - | } | |
| 1425 | - | v.Elem().Set(nv) | |
| 1426 | - | return v, nil | |
| 1427 | - | } | |
| 1428 | - | ||
| 1429 | - | // A target implementing the unmarshaler interface consumes the value, | |
| 1430 | - | // whatever the remaining parts of the key are. | |
| 1431 | - | if d.unmarshalerInterface { | |
| 1432 | - | if u, ok := unmarshalerOf(v); ok { | |
| 1433 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |
| 1434 | - | } | |
| 1435 | - | } | |
| 1436 | - | ||
| 1437 | - | part := path[idx] | |
| 1438 | - | ||
| 1439 | - | switch v.Kind() { | |
| 1440 | - | case reflect.Map: | |
| 1441 | - | // Native fast path for the most common generic target: walk the | |
| 1442 | - | // remaining dotted-key path with plain Go map operations and decode | |
| 1443 | - | // the value directly, skipping the reflect.Value round-trips | |
| 1444 | - | // (stringMapKey, MapIndex, New, SetMapIndex) entirely. | |
| 1445 | - | if !d.unmarshalerInterface && v.Type() == mapStringInterfaceType { | |
| 1446 | - | return d.descendStrMap(v, path, idx, value) | |
| 1447 | - | } | |
| 1448 | - | var name string | |
| 1449 | - | var key reflect.Value | |
| 1450 | - | var err error | |
| 1451 | - | fastKey := v.Type().Key() == stringType | |
| 1452 | - | if fastKey { | |
| 1453 | - | name = d.partString(&part) | |
| 1454 | - | key = d.stringMapKey(name) | |
| 1455 | - | } else { | |
| 1456 | - | key, err = makeMapKey(v.Type().Key(), d.partString(&part)) | |
| 1457 | - | if err != nil { | |
| 1458 | - | return reflect.Value{}, err | |
| 1459 | - | } | |
| 1460 | - | } | |
| 1461 | - | if v.IsNil() { | |
| 1462 | - | v = reflect.MakeMap(v.Type()) | |
| 1463 | - | } | |
| 1464 | - | elemType := v.Type().Elem() | |
| 1465 | - | existing := v.MapIndex(key) | |
| 1466 | - | var elem reflect.Value | |
| 1467 | - | switch { | |
| 1468 | - | case existing.IsValid(): | |
| 1469 | - | elem = reflect.New(elemType).Elem() | |
| 1470 | - | elem.Set(existing) | |
| 1471 | - | case idx+1 == len(path) && elemType.Kind() == reflect.Interface: | |
| 1472 | - | // Fast path: a fresh interface element does not need to be | |
| 1473 | - | // materialized, the assigned value is stored directly. | |
| 1474 | - | elem = reflect.Zero(elemType) | |
| 1475 | - | default: | |
| 1476 | - | elem = reflect.New(elemType).Elem() | |
| 1477 | - | } | |
| 1478 | - | nv, err := d.descend(elem, path, idx+1, expr, value) | |
| 1479 | - | if err != nil { | |
| 1480 | - | return reflect.Value{}, err | |
| 1481 | - | } | |
| 1482 | - | if nv.IsValid() { | |
| 1483 | - | if fastKey { | |
| 1484 | - | // The recursion may have overwritten the key buffer. | |
| 1485 | - | key = d.stringMapKey(name) | |
| 1486 | - | } | |
| 1487 | - | v.SetMapIndex(key, nv) | |
| 1488 | - | } | |
| 1489 | - | return v, nil | |
| 1490 | - | case reflect.Struct: | |
| 1491 | - | plan := planForType(v.Type()) | |
| 1492 | - | f, found := plan.lookupBytes(part.bytes()) | |
| 1493 | - | if !found { | |
| 1494 | - | if part.node != nil { | |
| 1495 | - | d.strict.MissingField(expr) | |
| 1496 | - | } | |
| 1497 | - | return v, nil | |
| 1498 | - | } | |
| 1499 | - | fv, err := fieldByIndexAlloc(v, f.index) | |
| 1500 | - | if err != nil { | |
| 1501 | - | return reflect.Value{}, err | |
| 1502 | - | } | |
| 1503 | - | var nv reflect.Value | |
| 1504 | - | if idx+1 == len(path) { | |
| 1505 | - | // Leaf field: assign directly. descend's first action for a | |
| 1506 | - | // fully-consumed path is exactly this call, so skipping the extra | |
| 1507 | - | // frame is equivalent and avoids a call per scalar field. | |
| 1508 | - | nv, err = d.assignValue(fv, expr, value) | |
| 1509 | - | } else { | |
| 1510 | - | nv, err = d.descend(fv, path, idx+1, expr, value) | |
| 1511 | - | } | |
| 1512 | - | if err != nil { | |
| 1513 | - | var mm *typeMismatchError | |
| 1514 | - | if errors.As(err, &mm) { | |
| 1515 | - | err = &unstable.ParserError{ | |
| 1516 | - | Highlight: mm.highlight, | |
| 1517 | - | Message: fmt.Sprintf("cannot decode TOML %s into struct field %s.%s of type %s", | |
| 1518 | - | mm.toml, v.Type(), f.fieldName, mm.target), | |
| 1519 | - | } | |
| 1520 | - | } | |
| 1521 | - | return reflect.Value{}, err | |
| 1522 | - | } | |
| 1523 | - | if nv.IsValid() && fv.CanSet() { | |
| 1524 | - | fv.Set(nv) | |
| 1525 | - | } | |
| 1526 | - | return v, nil | |
| 1527 | - | case reflect.Interface: | |
| 1528 | - | elem := elemOrNewMap(v) | |
| 1529 | - | nv, err := d.descend(elem, path, idx, expr, value) | |
| 1530 | - | if err != nil || !nv.IsValid() { | |
| 1531 | - | return reflect.Value{}, err | |
| 1532 | - | } | |
| 1533 | - | return nv, nil | |
| 1534 | - | case reflect.Slice: | |
| 1535 | - | if v.Len() == 0 { | |
| 1536 | - | if v.IsNil() { | |
| 1537 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |
| 1538 | - | } | |
| 1539 | - | v = reflect.Append(v, reflect.New(v.Type().Elem()).Elem()) | |
| 1540 | - | } | |
| 1541 | - | elem := v.Index(v.Len() - 1) | |
| 1542 | - | nv, err := d.descend(elem, path, idx, expr, value) | |
| 1543 | - | if err != nil { | |
| 1544 | - | return reflect.Value{}, err | |
| 1545 | - | } | |
| 1546 | - | if nv.IsValid() { | |
| 1547 | - | elem.Set(nv) | |
| 1548 | - | } | |
| 1549 | - | return v, nil | |
| 1550 | - | case reflect.Array: | |
| 1551 | - | names := make([]string, idx) | |
| 1552 | - | for i := range names { | |
| 1553 | - | names[i] = path[i].str() | |
| 1554 | - | } | |
| 1555 | - | cnt := d.arrayCount(d.joinPath(names)) | |
| 1556 | - | if cnt == 0 { | |
| 1557 | - | cnt = 1 | |
| 1558 | - | } | |
| 1559 | - | elemIdx := cnt - 1 | |
| 1560 | - | if elemIdx >= v.Len() { | |
| 1561 | - | return reflect.Value{}, unstable.NewParserError(keyHighlight(d.p.Data(), part.node), | |
| 1562 | - | "cannot reach element %d of array of size %d", elemIdx, v.Len()) | |
| 1563 | - | } | |
| 1564 | - | elem := v.Index(elemIdx) | |
| 1565 | - | nv, err := d.descend(elem, path, idx, expr, value) | |
| 1566 | - | if err != nil { | |
| 1567 | - | return reflect.Value{}, err | |
| 1568 | - | } | |
| 1569 | - | if nv.IsValid() { | |
| 1570 | - | elem.Set(nv) | |
| 1571 | - | } | |
| 1572 | - | return v, nil | |
| 1573 | - | default: | |
| 1574 | - | return reflect.Value{}, d.typeMismatchError("table", v.Type(), keyHighlight(d.p.Data(), part.node)) | |
| 1575 | - | } | |
| 1576 | - | } | |
| 1577 | - | ||
| 1578 | - | // descendStrMap assigns into a native map[string]interface{} target, following | |
| 1579 | - | // the remaining dotted-key parts with plain Go map operations and decoding the | |
| 1580 | - | // value with decodeAny. It returns the map to store back at this level: a new | |
| 1581 | - | // map when v was nil, otherwise v unchanged, since maps are reference types and | |
| 1582 | - | // are mutated in place. | |
| 1583 | - | func (d *decoder) descendStrMap(v reflect.Value, path []pathPart, idx int, value *unstable.Node) (reflect.Value, error) { | |
| 1584 | - | var m map[string]interface{} | |
| 1585 | - | if v.IsNil() { | |
| 1586 | - | m = make(map[string]interface{}) | |
| 1587 | - | v = reflect.ValueOf(m) | |
| 1588 | - | } else { | |
| 1589 | - | m = v.Interface().(map[string]interface{}) | |
| 1590 | - | } | |
| 1591 | - | ||
| 1592 | - | // Walk intermediate parts, creating or reusing nested generic maps. A | |
| 1593 | - | // non-map value at an intermediate key can only occur in a document the | |
| 1594 | - | // seen-tracker has already rejected; replacing it mirrors the reflect | |
| 1595 | - | // path (elemOrNewMap). | |
| 1596 | - | for ; idx < len(path)-1; idx++ { | |
| 1597 | - | name := d.partString(&path[idx]) | |
| 1598 | - | child, _ := m[name].(map[string]interface{}) | |
| 1599 | - | if child == nil { | |
| 1600 | - | child = make(map[string]interface{}) | |
| 1601 | - | m[name] = child | |
| 1602 | - | } | |
| 1603 | - | m = child | |
| 1604 | - | } | |
| 1605 | - | ||
| 1606 | - | av, err := d.decodeAny(value) | |
| 1607 | - | if err != nil { | |
| 1608 | - | return reflect.Value{}, err | |
| 1609 | - | } | |
| 1610 | - | m[d.partString(&path[idx])] = av | |
| 1611 | - | return v, nil | |
| 1612 | - | } | |
| 1613 | - | ||
| 1614 | - | // keyHighlight returns a highlight for the given key part node, falling back | |
| 1615 | - | // to the start of the document. | |
| 1616 | - | func keyHighlight(doc []byte, node *unstable.Node) []byte { | |
| 1617 | - | if node == nil { | |
| 1618 | - | return doc[0:0] | |
| 1619 | - | } | |
| 1620 | - | return doc[node.Raw.Offset : node.Raw.Offset+node.Raw.Length] | |
| 1621 | - | } | |
| 1622 | - | ||
| 1623 | - | // rawValue returns the raw bytes of the value of a key-value expression. | |
| 1624 | - | func (d *decoder) rawValue(expr *unstable.Node, value *unstable.Node) []byte { | |
| 1625 | - | if value.Kind != unstable.InlineTable && value.Kind != unstable.Array { | |
| 1626 | - | return d.p.Raw(value.Raw) | |
| 1627 | - | } | |
| 1628 | - | if expr == nil || expr.Kind != unstable.KeyValue { | |
| 1629 | - | // Inline container nested in another container: best effort. | |
| 1630 | - | return d.p.Raw(value.Raw) | |
| 1631 | - | } | |
| 1632 | - | // Reconstruct the span of the value: it starts after the equal sign | |
| 1633 | - | // following the last part of the key, and stops at the end of the | |
| 1634 | - | // expression. | |
| 1635 | - | var last unstable.Range | |
| 1636 | - | it := expr.Key() | |
| 1637 | - | for it.Next() { | |
| 1638 | - | last = it.Node().Raw | |
| 1639 | - | } | |
| 1640 | - | doc := d.p.Data() | |
| 1641 | - | i := int(last.Offset + last.Length) | |
| 1642 | - | for i < len(doc) && (doc[i] == ' ' || doc[i] == '\t') { | |
| 1643 | - | i++ | |
| 1644 | - | } | |
| 1645 | - | i++ // equal sign | |
| 1646 | - | for i < len(doc) && (doc[i] == ' ' || doc[i] == '\t') { | |
| 1647 | - | i++ | |
| 1648 | - | } | |
| 1649 | - | end := int(expr.Raw.Offset + expr.Raw.Length) | |
| 1650 | - | return doc[i:end] | |
| 1651 | - | } | |
| 1652 | - | ||
| 1653 | - | // unmarshalerOf returns the unstable.Unmarshaler implementation of v, if | |
| 1654 | - | // any. It allocates intermediate pointers as needed. | |
| 1655 | - | func unmarshalerOf(v reflect.Value) (unstable.Unmarshaler, bool) { | |
| 1656 | - | t := v.Type() | |
| 1657 | - | if t.Implements(unmarshalerType) { | |
| 1658 | - | if v.Kind() == reflect.Ptr && v.IsNil() { | |
| 1659 | - | v.Set(reflect.New(t.Elem())) | |
| 1660 | - | } | |
| 1661 | - | return v.Interface().(unstable.Unmarshaler), true | |
| 1662 | - | } | |
| 1663 | - | if v.CanAddr() && reflect.PtrTo(t).Implements(unmarshalerType) { | |
| 1664 | - | return v.Addr().Interface().(unstable.Unmarshaler), true | |
| 1665 | - | } | |
| 1666 | - | return nil, false | |
| 1667 | - | } | |
| 1668 | - | ||
| 1669 | - | var unmarshalerType = reflect.TypeOf(new(unstable.Unmarshaler)).Elem() | |
| 1670 | - | ||
| 1671 | - | // assignValue stores the TOML value carried by the node into v. | |
| 1672 | - | func (d *decoder) assignValue(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |
| 1673 | - | if v.Kind() == reflect.Ptr { | |
| 1674 | - | if d.unmarshalerInterface { | |
| 1675 | - | if u, ok := unmarshalerOf(v); ok { | |
| 1676 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |
| 1677 | - | } | |
| 1678 | - | } | |
| 1679 | - | if v.IsNil() { | |
| 1680 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 1681 | - | } | |
| 1682 | - | nv, err := d.assignValue(v.Elem(), expr, value) | |
| 1683 | - | if err != nil || !nv.IsValid() { | |
| 1684 | - | return reflect.Value{}, err | |
| 1685 | - | } | |
| 1686 | - | v.Elem().Set(nv) | |
| 1687 | - | return v, nil | |
| 1688 | - | } | |
| 1689 | - | ||
| 1690 | - | if d.unmarshalerInterface { | |
| 1691 | - | if u, ok := unmarshalerOf(v); ok { | |
| 1692 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |
| 1693 | - | } | |
| 1694 | - | } | |
| 1695 | - | ||
| 1696 | - | switch value.Kind { | |
| 1697 | - | case unstable.String: | |
| 1698 | - | return d.assignString(v, value) | |
| 1699 | - | case unstable.Integer: | |
| 1700 | - | return d.assignInteger(v, value) | |
| 1701 | - | case unstable.Float: | |
| 1702 | - | return d.assignFloat(v, value) | |
| 1703 | - | case unstable.Bool: | |
| 1704 | - | return d.assignBool(v, value) | |
| 1705 | - | case unstable.DateTime: | |
| 1706 | - | return d.assignDateTime(v, value) | |
| 1707 | - | case unstable.LocalDateTime: | |
| 1708 | - | return d.assignLocalDateTime(v, value) | |
| 1709 | - | case unstable.LocalDate: | |
| 1710 | - | return d.assignLocalDate(v, value) | |
| 1711 | - | case unstable.LocalTime: | |
| 1712 | - | return d.assignLocalTime(v, value) | |
| 1713 | - | case unstable.Array: | |
| 1714 | - | return d.assignArray(v, expr, value) | |
| 1715 | - | case unstable.InlineTable: | |
| 1716 | - | return d.assignInlineTable(v, expr, value) | |
| 1717 | - | default: | |
| 1718 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "unsupported value kind %s", value.Kind) | |
| 1719 | - | } | |
| 1720 | - | } | |
| 1721 | - | ||
| 1722 | - | func (d *decoder) assignString(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1723 | - | switch v.Kind() { | |
| 1724 | - | case reflect.String: | |
| 1725 | - | v.SetString(string(value.Data)) | |
| 1726 | - | return v, nil | |
| 1727 | - | case reflect.Interface: | |
| 1728 | - | return boxInto(v, reflect.ValueOf(string(value.Data))) | |
| 1729 | - | default: | |
| 1730 | - | } | |
| 1731 | - | if v.CanAddr() && v.Addr().Type().Implements(textUnmarshalerType) { | |
| 1732 | - | err := v.Addr().Interface().(encoding.TextUnmarshaler).UnmarshalText(value.Data) | |
| 1733 | - | if err != nil { | |
| 1734 | - | return reflect.Value{}, unstable.NewParserError(d.p.Raw(value.Raw), "%s", err) | |
| 1735 | - | } | |
| 1736 | - | return v, nil | |
| 1737 | - | } | |
| 1738 | - | return reflect.Value{}, d.typeMismatchError("string", v.Type(), d.p.Raw(value.Raw)) | |
| 1739 | - | } | |
| 1740 | - | ||
| 1741 | - | func (d *decoder) assignInteger(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1742 | - | // Integer values targeting a float field are parsed as floats: they can | |
| 1743 | - | // represent (approximately) numbers beyond the int64 range. | |
| 1744 | - | if k := v.Kind(); k == reflect.Float32 || k == reflect.Float64 { | |
| 1745 | - | return d.assignFloat(v, value) | |
| 1746 | - | } | |
| 1747 | - | ||
| 1748 | - | i, err := parseInteger(value.Data) | |
| 1749 | - | if err != nil { | |
| 1750 | - | return reflect.Value{}, err | |
| 1751 | - | } | |
| 1752 | - | ||
| 1753 | - | switch v.Kind() { | |
| 1754 | - | case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | |
| 1755 | - | if v.OverflowInt(i) { | |
| 1756 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "integer value %d cannot be stored in %s", i, v.Type()) | |
| 1757 | - | } | |
| 1758 | - | v.SetInt(i) | |
| 1759 | - | return v, nil | |
| 1760 | - | case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: | |
| 1761 | - | if i < 0 { | |
| 1762 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "negative integer value %d cannot be stored in %s", i, v.Type()) | |
| 1763 | - | } | |
| 1764 | - | if v.OverflowUint(uint64(i)) { | |
| 1765 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "integer value %d cannot be stored in %s", i, v.Type()) | |
| 1766 | - | } | |
| 1767 | - | v.SetUint(uint64(i)) | |
| 1768 | - | return v, nil | |
| 1769 | - | case reflect.Interface: | |
| 1770 | - | return boxInto(v, reflect.ValueOf(i)) | |
| 1771 | - | default: | |
| 1772 | - | } | |
| 1773 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |
| 1774 | - | return v, err | |
| 1775 | - | } | |
| 1776 | - | return reflect.Value{}, d.typeMismatchError("integer", v.Type(), d.p.Raw(value.Raw)) | |
| 1777 | - | } | |
| 1778 | - | ||
| 1779 | - | // tryTextUnmarshaler attempts to deliver the raw text of a value to a target | |
| 1780 | - | // implementing encoding.TextUnmarshaler. | |
| 1781 | - | func tryTextUnmarshaler(v reflect.Value, text []byte) (bool, error) { | |
| 1782 | - | if v.CanAddr() && v.Addr().Type().Implements(textUnmarshalerType) { | |
| 1783 | - | return true, v.Addr().Interface().(encoding.TextUnmarshaler).UnmarshalText(text) | |
| 1784 | - | } | |
| 1785 | - | return false, nil | |
| 1786 | - | } | |
| 1787 | - | ||
| 1788 | - | func (d *decoder) assignFloat(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1789 | - | f, err := parseFloat(value.Data) | |
| 1790 | - | if err != nil { | |
| 1791 | - | return reflect.Value{}, err | |
| 1792 | - | } | |
| 1793 | - | ||
| 1794 | - | switch v.Kind() { | |
| 1795 | - | case reflect.Float64: | |
| 1796 | - | v.SetFloat(f) | |
| 1797 | - | return v, nil | |
| 1798 | - | case reflect.Float32: | |
| 1799 | - | if !math.IsInf(f, 0) && math.Abs(f) > math.MaxFloat32 { | |
| 1800 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "float value %f cannot be stored in float32", f) | |
| 1801 | - | } | |
| 1802 | - | v.SetFloat(f) | |
| 1803 | - | return v, nil | |
| 1804 | - | case reflect.Interface: | |
| 1805 | - | return boxInto(v, reflect.ValueOf(f)) | |
| 1806 | - | default: | |
| 1807 | - | } | |
| 1808 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |
| 1809 | - | return v, err | |
| 1810 | - | } | |
| 1811 | - | return reflect.Value{}, d.typeMismatchError("float", v.Type(), d.p.Raw(value.Raw)) | |
| 1812 | - | } | |
| 1813 | - | ||
| 1814 | - | func (d *decoder) assignBool(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1815 | - | b := value.Data[0] == 't' | |
| 1816 | - | ||
| 1817 | - | switch v.Kind() { | |
| 1818 | - | case reflect.Bool: | |
| 1819 | - | v.SetBool(b) | |
| 1820 | - | return v, nil | |
| 1821 | - | case reflect.Interface: | |
| 1822 | - | return boxInto(v, reflect.ValueOf(b)) | |
| 1823 | - | default: | |
| 1824 | - | } | |
| 1825 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |
| 1826 | - | return v, err | |
| 1827 | - | } | |
| 1828 | - | return reflect.Value{}, d.typeMismatchError("boolean", v.Type(), d.p.Raw(value.Raw)) | |
| 1829 | - | } | |
| 1830 | - | ||
| 1831 | - | func (d *decoder) assignDateTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1832 | - | t, err := parseDateTime(value.Data) | |
| 1833 | - | if err != nil { | |
| 1834 | - | return reflect.Value{}, err | |
| 1835 | - | } | |
| 1836 | - | ||
| 1837 | - | if v.Type() == timeType { | |
| 1838 | - | setConcrete(v, t) | |
| 1839 | - | return v, nil | |
| 1840 | - | } | |
| 1841 | - | if v.Kind() == reflect.Interface { | |
| 1842 | - | return boxInto(v, reflect.ValueOf(t)) | |
| 1843 | - | } | |
| 1844 | - | return reflect.Value{}, d.typeMismatchError("datetime", v.Type(), d.p.Raw(value.Raw)) | |
| 1845 | - | } | |
| 1846 | - | ||
| 1847 | - | // setConcrete assigns x to v, which must be a settable value of x's concrete | |
| 1848 | - | // type. Writing through the address avoids the heap allocation that | |
| 1849 | - | // v.Set(reflect.ValueOf(x)) incurs from boxing x into an interface. Settable | |
| 1850 | - | // implies addressable: the decoder assigns to struct fields, slice elements, | |
| 1851 | - | // and reflect.New-allocated temporaries (map elements are decoded into such | |
| 1852 | - | // temporaries), all of which are addressable. | |
| 1853 | - | func setConcrete[T any](v reflect.Value, x T) { | |
| 1854 | - | *(v.Addr().Interface().(*T)) = x | |
| 1855 | - | } | |
| 1856 | - | ||
| 1857 | - | func (d *decoder) assignLocalDateTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1858 | - | dt, rest, err := parseLocalDateTime(value.Data) | |
| 1859 | - | if err != nil { | |
| 1860 | - | return reflect.Value{}, err | |
| 1861 | - | } | |
| 1862 | - | if len(rest) > 0 { | |
| 1863 | - | return reflect.Value{}, unstable.NewParserError(rest, "extra characters at the end of a local date time") | |
| 1864 | - | } | |
| 1865 | - | ||
| 1866 | - | switch v.Type() { | |
| 1867 | - | case localDateTimeType: | |
| 1868 | - | setConcrete(v, dt) | |
| 1869 | - | return v, nil | |
| 1870 | - | case timeType: | |
| 1871 | - | setConcrete(v, dt.AsTime(time.Local)) | |
| 1872 | - | return v, nil | |
| 1873 | - | } | |
| 1874 | - | if v.Kind() == reflect.Interface { | |
| 1875 | - | return boxInto(v, reflect.ValueOf(dt)) | |
| 1876 | - | } | |
| 1877 | - | return reflect.Value{}, d.typeMismatchError("local datetime", v.Type(), d.p.Raw(value.Raw)) | |
| 1878 | - | } | |
| 1879 | - | ||
| 1880 | - | func (d *decoder) assignLocalDate(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1881 | - | date, err := parseLocalDate(value.Data) | |
| 1882 | - | if err != nil { | |
| 1883 | - | return reflect.Value{}, err | |
| 1884 | - | } | |
| 1885 | - | ||
| 1886 | - | switch v.Type() { | |
| 1887 | - | case localDateType: | |
| 1888 | - | setConcrete(v, date) | |
| 1889 | - | return v, nil | |
| 1890 | - | case timeType: | |
| 1891 | - | setConcrete(v, date.AsTime(time.Local)) | |
| 1892 | - | return v, nil | |
| 1893 | - | } | |
| 1894 | - | if v.Kind() == reflect.Interface { | |
| 1895 | - | return boxInto(v, reflect.ValueOf(date)) | |
| 1896 | - | } | |
| 1897 | - | return reflect.Value{}, d.typeMismatchError("local date", v.Type(), d.p.Raw(value.Raw)) | |
| 1898 | - | } | |
| 1899 | - | ||
| 1900 | - | func (d *decoder) assignLocalTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |
| 1901 | - | t, rest, err := parseLocalTime(value.Data) | |
| 1902 | - | if err != nil { | |
| 1903 | - | return reflect.Value{}, err | |
| 1904 | - | } | |
| 1905 | - | if len(rest) > 0 { | |
| 1906 | - | return reflect.Value{}, unstable.NewParserError(rest, "extra characters at the end of a local time") | |
| 1907 | - | } | |
| 1908 | - | ||
| 1909 | - | switch v.Type() { | |
| 1910 | - | case localTimeType: | |
| 1911 | - | setConcrete(v, t) | |
| 1912 | - | return v, nil | |
| 1913 | - | case timeType: | |
| 1914 | - | setConcrete(v, time.Date(0, 1, 1, t.Hour, t.Minute, t.Second, t.Nanosecond, time.Local)) | |
| 1915 | - | return v, nil | |
| 1916 | - | } | |
| 1917 | - | if v.Kind() == reflect.Interface { | |
| 1918 | - | return boxInto(v, reflect.ValueOf(t)) | |
| 1919 | - | } | |
| 1920 | - | return reflect.Value{}, d.typeMismatchError("local time", v.Type(), d.p.Raw(value.Raw)) | |
| 1921 | - | } | |
| 1922 | - | ||
| 1923 | - | func (d *decoder) assignArray(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |
| 1924 | - | // Count the elements to allocate the target in one go. | |
| 1925 | - | count := 0 | |
| 1926 | - | cit := value.Children() | |
| 1927 | - | for cit.Next() { | |
| 1928 | - | if cit.Node().Kind != unstable.Comment { | |
| 1929 | - | count++ | |
| 1930 | - | } | |
| 1931 | - | } | |
| 1932 | - | ||
| 1933 | - | switch v.Kind() { | |
| 1934 | - | case reflect.Slice: | |
| 1935 | - | // Allocate the backing array once at its final length and assign each | |
| 1936 | - | // element in place. This avoids a reflect.New allocation per element | |
| 1937 | - | // and the repeated growth checks of reflect.Append. | |
| 1938 | - | slice := reflect.MakeSlice(v.Type(), count, count) | |
| 1939 | - | i := 0 | |
| 1940 | - | it := value.Children() | |
| 1941 | - | for it.Next() { | |
| 1942 | - | n := it.Node() | |
| 1943 | - | if n.Kind == unstable.Comment { | |
| 1944 | - | continue | |
| 1945 | - | } | |
| 1946 | - | elem := slice.Index(i) | |
| 1947 | - | nv, err := d.assignValue(elem, nil, n) | |
| 1948 | - | if err != nil { | |
| 1949 | - | return reflect.Value{}, err | |
| 1950 | - | } | |
| 1951 | - | if nv.IsValid() { | |
| 1952 | - | elem.Set(nv) | |
| 1953 | - | } | |
| 1954 | - | i++ | |
| 1955 | - | } | |
| 1956 | - | return slice, nil | |
| 1957 | - | case reflect.Array: | |
| 1958 | - | it := value.Children() | |
| 1959 | - | i := 0 | |
| 1960 | - | for it.Next() { | |
| 1961 | - | n := it.Node() | |
| 1962 | - | if n.Kind == unstable.Comment { | |
| 1963 | - | continue | |
| 1964 | - | } | |
| 1965 | - | if i >= v.Len() { | |
| 1966 | - | // Extra elements are dropped when the target array is too | |
| 1967 | - | // small. | |
| 1968 | - | break | |
| 1969 | - | } | |
| 1970 | - | elem := v.Index(i) | |
| 1971 | - | nv, err := d.assignValue(elem, nil, n) | |
| 1972 | - | if err != nil { | |
| 1973 | - | return reflect.Value{}, err | |
| 1974 | - | } | |
| 1975 | - | elem.Set(nv) | |
| 1976 | - | i++ | |
| 1977 | - | } | |
| 1978 | - | return v, nil | |
| 1979 | - | case reflect.Interface: | |
| 1980 | - | // Build the []interface{} natively: each element is decoded straight | |
| 1981 | - | // into a Go value with no intermediate addressable reflect.Value and | |
| 1982 | - | // no reflect round-trip, and nested arrays recurse the same way. | |
| 1983 | - | slice := make([]interface{}, 0, count) | |
| 1984 | - | it := value.Children() | |
| 1985 | - | for it.Next() { | |
| 1986 | - | n := it.Node() | |
| 1987 | - | if n.Kind == unstable.Comment { | |
| 1988 | - | continue | |
| 1989 | - | } | |
| 1990 | - | ev, err := d.decodeAny(n) | |
| 1991 | - | if err != nil { | |
| 1992 | - | return reflect.Value{}, err | |
| 1993 | - | } | |
| 1994 | - | slice = append(slice, ev) | |
| 1995 | - | } | |
| 1996 | - | return boxInto(v, reflect.ValueOf(slice)) | |
| 1997 | - | default: | |
| 1998 | - | } | |
| 1999 | - | return reflect.Value{}, d.typeMismatchError("array", v.Type(), d.rawValue(expr, value)) | |
| 2000 | - | } | |
| 2001 | - | ||
| 2002 | - | // decodeAny decodes a value node into a native Go value (the representation | |
| 2003 | - | // used for interface{} targets), without going through reflect. Scalars and | |
| 2004 | - | // arrays are handled directly; inline tables still defer to the reflect-based | |
| 2005 | - | // path so that their dotted-key merge semantics remain identical. | |
| 2006 | - | func (d *decoder) decodeAny(n *unstable.Node) (interface{}, error) { | |
| 2007 | - | switch n.Kind { | |
| 2008 | - | case unstable.String: | |
| 2009 | - | return string(n.Data), nil | |
| 2010 | - | case unstable.Integer: | |
| 2011 | - | i, err := parseInteger(n.Data) | |
| 2012 | - | return i, err | |
| 2013 | - | case unstable.Float: | |
| 2014 | - | f, err := parseFloat(n.Data) | |
| 2015 | - | return f, err | |
| 2016 | - | case unstable.Bool: | |
| 2017 | - | return n.Data[0] == 't', nil | |
| 2018 | - | case unstable.Array: | |
| 2019 | - | count := 0 | |
| 2020 | - | cit := n.Children() | |
| 2021 | - | for cit.Next() { | |
| 2022 | - | if cit.Node().Kind != unstable.Comment { | |
| 2023 | - | count++ | |
| 2024 | - | } | |
| 2025 | - | } | |
| 2026 | - | slice := make([]interface{}, 0, count) | |
| 2027 | - | it := n.Children() | |
| 2028 | - | for it.Next() { | |
| 2029 | - | c := it.Node() | |
| 2030 | - | if c.Kind == unstable.Comment { | |
| 2031 | - | continue | |
| 2032 | - | } | |
| 2033 | - | ev, err := d.decodeAny(c) | |
| 2034 | - | if err != nil { | |
| 2035 | - | return nil, err | |
| 2036 | - | } | |
| 2037 | - | slice = append(slice, ev) | |
| 2038 | - | } | |
| 2039 | - | return slice, nil | |
| 2040 | - | case unstable.InlineTable: | |
| 2041 | - | // Build the map natively: navigate each (possibly dotted) key with | |
| 2042 | - | // plain Go map operations and decode each value with decodeAny. The | |
| 2043 | - | // seen-tracker has already rejected duplicate or conflicting keys, so | |
| 2044 | - | // intermediate parts can be created/merged without revalidation. | |
| 2045 | - | count := 0 | |
| 2046 | - | cit := n.Children() | |
| 2047 | - | for cit.Next() { | |
| 2048 | - | count++ | |
| 2049 | - | } | |
| 2050 | - | m := make(map[string]interface{}, count) | |
| 2051 | - | it := n.Children() | |
| 2052 | - | for it.Next() { | |
| 2053 | - | kv := it.Node() | |
| 2054 | - | if err := d.setAnyKey(m, kv.Key(), kv.Value()); err != nil { | |
| 2055 | - | return nil, err | |
| 2056 | - | } | |
| 2057 | - | } | |
| 2058 | - | return m, nil | |
| 2059 | - | case unstable.DateTime: | |
| 2060 | - | t, err := parseDateTime(n.Data) | |
| 2061 | - | return t, err | |
| 2062 | - | case unstable.LocalDateTime: | |
| 2063 | - | dt, rest, err := parseLocalDateTime(n.Data) | |
| 2064 | - | if err != nil { | |
| 2065 | - | return nil, err | |
| 2066 | - | } | |
| 2067 | - | if len(rest) > 0 { | |
| 2068 | - | return nil, unstable.NewParserError(rest, "extra characters at the end of a local date time") | |
| 2069 | - | } | |
| 2070 | - | return dt, nil | |
| 2071 | - | case unstable.LocalDate: | |
| 2072 | - | date, err := parseLocalDate(n.Data) | |
| 2073 | - | return date, err | |
| 2074 | - | case unstable.LocalTime: | |
| 2075 | - | t, rest, err := parseLocalTime(n.Data) | |
| 2076 | - | if err != nil { | |
| 2077 | - | return nil, err | |
| 2078 | - | } | |
| 2079 | - | if len(rest) > 0 { | |
| 2080 | - | return nil, unstable.NewParserError(rest, "extra characters at the end of a local time") | |
| 2081 | - | } | |
| 2082 | - | return t, nil | |
| 2083 | - | default: | |
| 2084 | - | return nil, unstable.NewParserError(n.Data, "unsupported value kind %s", n.Kind) | |
| 2085 | - | } | |
| 2086 | - | } | |
| 2087 | - | ||
| 2088 | - | func (d *decoder) assignInlineTable(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |
| 2089 | - | switch v.Kind() { | |
| 2090 | - | case reflect.Map: | |
| 2091 | - | // Inline tables are self-contained: they fully replace the target. | |
| 2092 | - | v = reflect.MakeMap(v.Type()) | |
| 2093 | - | case reflect.Struct: | |
| 2094 | - | // fields are set in place | |
| 2095 | - | case reflect.Interface: | |
| 2096 | - | elem := reflect.ValueOf(map[string]interface{}{}) | |
| 2097 | - | nv, err := d.assignInlineTable(elem, expr, value) | |
| 2098 | - | if err != nil { | |
| 2099 | - | return reflect.Value{}, err | |
| 2100 | - | } | |
| 2101 | - | return boxInto(v, nv) | |
| 2102 | - | default: | |
| 2103 | - | return reflect.Value{}, d.typeMismatchError("inline table", v.Type(), d.rawValue(expr, value)) | |
| 2104 | - | } | |
| 2105 | - | ||
| 2106 | - | it := value.Children() | |
| 2107 | - | for it.Next() { | |
| 2108 | - | kv := it.Node() | |
| 2109 | - | // Build the path from the key of this key-value. Keys of inline | |
| 2110 | - | // tables rarely have more than a few parts. | |
| 2111 | - | var pathBuf [4]pathPart | |
| 2112 | - | path := pathBuf[:0] | |
| 2113 | - | kit := kv.Key() | |
| 2114 | - | for kit.Next() { | |
| 2115 | - | path = append(path, pathPart{node: kit.Node()}) | |
| 2116 | - | } | |
| 2117 | - | nv, err := d.descend(v, path, 0, kv, kv.Value()) | |
| 2118 | - | if err != nil { | |
| 2119 | - | return reflect.Value{}, err | |
| 2120 | - | } | |
| 2121 | - | if nv.IsValid() { | |
| 2122 | - | v = nv | |
| 2123 | - | } | |
| 2124 | - | } | |
| 2125 | - | return v, nil | |
| 2126 | - | } | |
| 2127 | - | ||
| 2128 | - | // boxInto returns the value to store in place of the interface value v. The | |
| 2129 | - | // caller stores the result in the slot v was found in, which performs the | |
| 2130 | - | // interface conversion, so the concrete value can be returned as-is. | |
| 2131 | - | func boxInto(v reflect.Value, c reflect.Value) (reflect.Value, error) { | |
| 2132 | - | if !c.Type().AssignableTo(v.Type()) { | |
| 2133 | - | return reflect.Value{}, fmt.Errorf("toml: cannot store %s into %s", c.Type(), v.Type()) | |
| 2134 | - | } | |
| 2135 | - | return c, nil | |
| 2136 | - | } | |
| 2137 | - | ||
| 2138 | - | var ( | |
| 2139 | - | interfaceType = reflect.TypeOf(new(interface{})).Elem() | |
| 2140 | - | localDateType = reflect.TypeOf(LocalDate{}) | |
| 2141 | - | localTimeType = reflect.TypeOf(LocalTime{}) | |
| 2142 | - | localDateTimeType = reflect.TypeOf(LocalDateTime{}) | |
| 2143 | - | ) | |
| 2144 | - | ||
| 2145 | - | // structPlan caches the mapping between TOML keys and the fields of a struct | |
| 2146 | - | // type. byFold, keyed by the lowercased name, resolves any key on its own when | |
| 2147 | - | // no two fields fold to the same name (the overwhelmingly common case, marked | |
| 2148 | - | // by hasCollision == false): TOML keys are usually lowercase and never match | |
| 2149 | - | // the exact (capitalized) Go field names, so the byName probe was always a | |
| 2150 | - | // wasted lookup. byName (the exact names) is only consulted, first, when | |
| 2151 | - | // fields do collide under folding, to preserve the exact-match-wins tiebreak. | |
| 2152 | - | type structPlan struct { | |
| 2153 | - | byName map[string]structField | |
| 2154 | - | byFold map[string]structField | |
| 2155 | - | hasCollision bool | |
| 2156 | - | } | |
| 2157 | - | ||
| 2158 | - | type structField struct { | |
| 2159 | - | index []int | |
| 2160 | - | fieldName string | |
| 2161 | - | } | |
| 2162 | - | ||
| 2163 | - | // foldBufSize bounds the stack buffer used to lowercase keys without | |
| 2164 | - | // allocating. Keys longer than this (extremely rare) take the strings.ToLower | |
| 2165 | - | // fallback. | |
| 2166 | - | const foldBufSize = 68 | |
| 2167 | - | ||
| 2168 | - | // lookup and lookupBytes keep the hot path to a single inlinable byFold lookup. | |
| 2169 | - | // byFold is indexed by both the exact field/tag names and their lowercased | |
| 2170 | - | // forms, so that lookup resolves the two common cases — a lowercase key, or a | |
| 2171 | - | // key matching the field's own casing — directly. byName is consulted first | |
| 2172 | - | // only for types whose fields collide under case-folding, to preserve the | |
| 2173 | - | // exact-match-wins tiebreak. The buffer-fold for other casings lives | |
| 2174 | - | // out-of-line so it does not bloat the hot path. | |
| 2175 | - | func (p *structPlan) lookup(name string) (structField, bool) { | |
| 2176 | - | if p.hasCollision { | |
| 2177 | - | if f, ok := p.byName[name]; ok { | |
| 2178 | - | return f, true | |
| 2179 | - | } | |
| 2180 | - | } | |
| 2181 | - | if f, ok := p.byFold[name]; ok { | |
| 2182 | - | return f, true | |
| 2183 | - | } | |
| 2184 | - | return p.lookupFoldStr(name) | |
| 2185 | - | } | |
| 2186 | - | ||
| 2187 | - | func (p *structPlan) lookupBytes(name []byte) (structField, bool) { | |
| 2188 | - | if p.hasCollision { | |
| 2189 | - | if f, ok := p.byName[string(name)]; ok { // does not allocate | |
| 2190 | - | return f, true | |
| 2191 | - | } | |
| 2192 | - | } | |
| 2193 | - | if f, ok := p.byFold[string(name)]; ok { // does not allocate | |
| 2194 | - | return f, true | |
| 2195 | - | } | |
| 2196 | - | return p.lookupFold(name) | |
| 2197 | - | } | |
| 2198 | - | ||
| 2199 | - | // lookupFold resolves keys whose casing matches neither the exact nor the | |
| 2200 | - | // lowercased index: it folds to lowercase (in a stack buffer for ASCII, so no | |
| 2201 | - | // allocation) and retries; only non-ASCII or oversized keys hit strings.ToLower. | |
| 2202 | - | func (p *structPlan) lookupFold(name []byte) (structField, bool) { | |
| 2203 | - | if len(name) <= foldBufSize { | |
| 2204 | - | // Fold into a stack buffer: len(name) <= cap(buf), so the append | |
| 2205 | - | // never reallocates and nothing escapes to the heap. | |
| 2206 | - | var buf [foldBufSize]byte | |
| 2207 | - | b := buf[:0] | |
| 2208 | - | ascii := true | |
| 2209 | - | for _, c := range name { | |
| 2210 | - | if c >= 0x80 { | |
| 2211 | - | ascii = false | |
| 2212 | - | break | |
| 2213 | - | } | |
| 2214 | - | if c >= 'A' && c <= 'Z' { | |
| 2215 | - | c += 'a' - 'A' | |
| 2216 | - | } | |
| 2217 | - | b = append(b, c) | |
| 2218 | - | } | |
| 2219 | - | if ascii { | |
| 2220 | - | f, ok := p.byFold[string(b)] // does not allocate | |
| 2221 | - | return f, ok | |
| 2222 | - | } | |
| 2223 | - | } | |
| 2224 | - | f, ok := p.byFold[strings.ToLower(string(name))] | |
| 2225 | - | return f, ok | |
| 2226 | - | } | |
| 2227 | - | ||
| 2228 | - | func (p *structPlan) lookupFoldStr(name string) (structField, bool) { | |
| 2229 | - | if len(name) <= foldBufSize { | |
| 2230 | - | // Fold into a stack buffer: len(name) <= cap(buf), so the append | |
| 2231 | - | // never reallocates and nothing escapes to the heap. | |
| 2232 | - | var buf [foldBufSize]byte | |
| 2233 | - | b := buf[:0] | |
| 2234 | - | ascii := true | |
| 2235 | - | for i := 0; i < len(name); i++ { | |
| 2236 | - | c := name[i] | |
| 2237 | - | if c >= 0x80 { | |
| 2238 | - | ascii = false | |
| 2239 | - | break | |
| 2240 | - | } | |
| 2241 | - | if c >= 'A' && c <= 'Z' { | |
| 2242 | - | c += 'a' - 'A' | |
| 2243 | - | } | |
| 2244 | - | b = append(b, c) | |
| 2245 | - | } | |
| 2246 | - | if ascii { | |
| 2247 | - | f, ok := p.byFold[string(b)] // does not allocate | |
| 2248 | - | return f, ok | |
| 2249 | - | } | |
| 2250 | - | } | |
| 2251 | - | f, ok := p.byFold[strings.ToLower(name)] | |
| 2252 | - | return f, ok | |
| 2253 | - | } | |
| 2254 | - | ||
| 2255 | - | var structPlans sync.Map // reflect.Type -> *structPlan | |
| 2256 | - | ||
| 2257 | - | func planForType(t reflect.Type) *structPlan { | |
| 2258 | - | if plan, ok := structPlans.Load(t); ok { | |
| 2259 | - | return plan.(*structPlan) | |
| 2260 | - | } | |
| 2261 | - | plan := buildPlan(t) | |
| 2262 | - | structPlans.Store(t, plan) | |
| 2263 | - | return plan | |
| 2264 | - | } | |
| 2265 | - | ||
| 2266 | - | func buildPlan(t reflect.Type) *structPlan { | |
| 2267 | - | plan := &structPlan{ | |
| 2268 | - | byName: map[string]structField{}, | |
| 2269 | - | byFold: map[string]structField{}, | |
| 2270 | - | } | |
| 2271 | - | addFields(plan, t, nil, map[reflect.Type]bool{}) | |
| 2272 | - | return plan | |
| 2273 | - | } | |
| 2274 | - | ||
| 2275 | - | // addFields flattens the fields of t into the plan. visited holds the types | |
| 2276 | - | // being flattened on the current branch: a struct type that embeds itself | |
| 2277 | - | // (directly or through other types) is not descended into again, mirroring | |
| 2278 | - | // buildEncPlan. Without this guard a recursive embedding would recurse | |
| 2279 | - | // forever; the repeated fields are unreachable by flattening anyway. | |
| 2280 | - | func addFields(plan *structPlan, t reflect.Type, prefix []int, visited map[reflect.Type]bool) { | |
| 2281 | - | if visited[t] { | |
| 2282 | - | return | |
| 2283 | - | } | |
| 2284 | - | visited[t] = true | |
| 2285 | - | defer delete(visited, t) | |
| 2286 | - | ||
| 2287 | - | var embedded []reflect.StructField | |
| 2288 | - | for i := 0; i < t.NumField(); i++ { | |
| 2289 | - | f := t.Field(i) | |
| 2290 | - | tag, tagged := f.Tag.Lookup("toml") | |
| 2291 | - | name := f.Name | |
| 2292 | - | explicitName := "" | |
| 2293 | - | if tagged { | |
| 2294 | - | // A tag of exactly "-" drops the field. "-," names it "-". | |
| 2295 | - | if tag == "-" { | |
| 2296 | - | continue | |
| 2297 | - | } | |
| 2298 | - | parts := strings.SplitN(tag, ",", 2) | |
| 2299 | - | explicitName = parts[0] | |
| 2300 | - | if explicitName != "" { | |
| 2301 | - | name = explicitName | |
| 2302 | - | } | |
| 2303 | - | } | |
| 2304 | - | if f.Anonymous { | |
| 2305 | - | ft := f.Type | |
| 2306 | - | if ft.Kind() == reflect.Ptr { | |
| 2307 | - | ft = ft.Elem() | |
| 2308 | - | } | |
| 2309 | - | if ft.Kind() != reflect.Struct { | |
| 2310 | - | // Embedded non-struct fields are not decoded into. | |
| 2311 | - | continue | |
| 2312 | - | } | |
| 2313 | - | if explicitName == "" { | |
| 2314 | - | // Embedded structs without an explicit tag name are flattened, | |
| 2315 | - | // even when their type is unexported: only their own exported | |
| 2316 | - | // fields are reachable. A tag that only sets options (e.g. | |
| 2317 | - | // `,inline`) still flattens, matching encoding/json and the | |
| 2318 | - | // encoder's behavior. | |
| 2319 | - | embedded = append(embedded, f) | |
| 2320 | - | continue | |
| 2321 | - | } | |
| 2322 | - | // An embedded struct given an explicit tag name acts as a regular | |
| 2323 | - | // named field. | |
| 2324 | - | } else if f.PkgPath != "" { | |
| 2325 | - | // unexported | |
| 2326 | - | continue | |
| 2327 | - | } | |
| 2328 | - | index := make([]int, 0, len(prefix)+1) | |
| 2329 | - | index = append(index, prefix...) | |
| 2330 | - | index = append(index, i) | |
| 2331 | - | sf := structField{index: index, fieldName: f.Name} | |
| 2332 | - | if _, ok := plan.byName[name]; !ok { | |
| 2333 | - | plan.byName[name] = sf | |
| 2334 | - | } | |
| 2335 | - | lower := strings.ToLower(name) | |
| 2336 | - | if _, ok := plan.byFold[lower]; !ok { | |
| 2337 | - | plan.byFold[lower] = sf | |
| 2338 | - | } else { | |
| 2339 | - | // Two distinct fields fold to the same name: case-insensitive | |
| 2340 | - | // matching is ambiguous, so lookups must consult byName first to | |
| 2341 | - | // keep the exact-match-wins tiebreak deterministic. | |
| 2342 | - | plan.hasCollision = true | |
| 2343 | - | } | |
| 2344 | - | // Index the exact (cased) name as well, so a key written with the | |
| 2345 | - | // field's own casing resolves in a single byFold lookup. Only fields | |
| 2346 | - | // whose name is not already lowercase need this extra entry. Any name | |
| 2347 | - | // that would conflict here also collides under folding (handled | |
| 2348 | - | // above), so byName-first preserves the exact tiebreak in that case. | |
| 2349 | - | if name != lower { | |
| 2350 | - | if _, ok := plan.byFold[name]; !ok { | |
| 2351 | - | plan.byFold[name] = sf | |
| 2352 | - | } | |
| 2353 | - | } | |
| 2354 | - | } | |
| 2355 | - | // Embedded structs are flattened after the regular fields, so that | |
| 2356 | - | // shallower fields win. | |
| 2357 | - | for _, f := range embedded { | |
| 2358 | - | ft := f.Type | |
| 2359 | - | if ft.Kind() == reflect.Ptr { | |
| 2360 | - | ft = ft.Elem() | |
| 2361 | - | } | |
| 2362 | - | index := make([]int, 0, len(prefix)+1) | |
| 2363 | - | index = append(index, prefix...) | |
| 2364 | - | idx := f.Index[0] | |
| 2365 | - | index = append(index, idx) | |
| 2366 | - | addFields(plan, ft, index, visited) | |
| 2367 | - | } | |
| 2368 | - | } | |
| 2369 | - | ||
| 2370 | - | // fieldByIndexAlloc returns the field of v at the given index path, | |
| 2371 | - | // allocating intermediate embedded pointers as needed. | |
| 2372 | - | func fieldByIndexAlloc(v reflect.Value, index []int) (reflect.Value, error) { | |
| 2373 | - | // Fast path for non-embedded fields, which have a single-element index: | |
| 2374 | - | // no intermediate pointer dereferencing is possible. | |
| 2375 | - | if len(index) == 1 { | |
| 2376 | - | return v.Field(index[0]), nil | |
| 2377 | - | } | |
| 2378 | - | for i, x := range index { | |
| 2379 | - | if i > 0 { | |
| 2380 | - | for v.Kind() == reflect.Ptr { | |
| 2381 | - | if v.IsNil() { | |
| 2382 | - | if !v.CanSet() { | |
| 2383 | - | // A nil embedded pointer of unexported type cannot be | |
| 2384 | - | // allocated: reflect forbids setting it. Match | |
| 2385 | - | // encoding/json and report it instead of panicking. | |
| 2386 | - | return reflect.Value{}, fmt.Errorf("toml: cannot set embedded pointer to unexported struct: %s", v.Type().Elem()) | |
| 2387 | - | } | |
| 2388 | - | v.Set(reflect.New(v.Type().Elem())) | |
| 2389 | - | } | |
| 2390 | - | v = v.Elem() | |
| 2391 | - | } | |
| 2392 | - | } | |
| 2393 | - | v = v.Field(x) | |
| 2394 | - | } | |
| 2395 | - | return v, nil | |
| 2396 | - | } | |
| @@ -1,2396 +0,0 @@ | |||||
| 1 | - | package toml | |||
| 2 | - | ||||
| 3 | - | import ( | |||
| 4 | - | "encoding" | |||
| 5 | - | "errors" | |||
| 6 | - | "fmt" | |||
| 7 | - | "io" | |||
| 8 | - | "math" | |||
| 9 | - | "reflect" | |||
| 10 | - | "strconv" | |||
| 11 | - | "strings" | |||
| 12 | - | "sync" | |||
| 13 | - | "time" | |||
| 14 | - | ||||
| 15 | - | "github.com/pelletier/go-toml/v2/internal/tracker" | |||
| 16 | - | "github.com/pelletier/go-toml/v2/unstable" | |||
| 17 | - | ) | |||
| 18 | - | ||||
| 19 | - | // decoderPool recycles decoders (and their internal buffers: parser arena, | |||
| 20 | - | // seen-tracker entries, scratch buffers) across calls to Unmarshal and | |||
| 21 | - | // Decode. | |||
| 22 | - | var decoderPool = sync.Pool{ | |||
| 23 | - | New: func() interface{} { return &decoder{} }, | |||
| 24 | - | } | |||
| 25 | - | ||||
| 26 | - | func getDecoder(strictMode, unmarshalerInterface bool) *decoder { | |||
| 27 | - | d := decoderPool.Get().(*decoder) | |||
| 28 | - | d.reset() | |||
| 29 | - | d.strict.Enabled = strictMode | |||
| 30 | - | d.unmarshalerInterface = unmarshalerInterface | |||
| 31 | - | return d | |||
| 32 | - | } | |||
| 33 | - | ||||
| 34 | - | func putDecoder(d *decoder) { | |||
| 35 | - | decoderPool.Put(d) | |||
| 36 | - | } | |||
| 37 | - | ||||
| 38 | - | // reset clears the per-document state of the decoder, keeping the allocated | |||
| 39 | - | // buffers for reuse. | |||
| 40 | - | func (d *decoder) reset() { | |||
| 41 | - | d.seen.Reset() | |||
| 42 | - | d.tableKey = d.tableKey[:0] | |||
| 43 | - | d.skipUntilTable = false | |||
| 44 | - | d.path = d.path[:0] | |||
| 45 | - | d.captures = d.captures[:0] | |||
| 46 | - | d.captureIdx = -1 | |||
| 47 | - | d.segIdx = d.segIdx[:0] | |||
| 48 | - | // Reuse the array-table counter slots across documents instead of | |||
| 49 | - | // deleting them: a zeroed slot is indistinguishable from an absent one, | |||
| 50 | - | // and keeping it alive means setArrayCount does not have to allocate a new | |||
| 51 | - | // *int every time the same path reappears. A safety valve bounds the table | |||
| 52 | - | // for adversarial inputs that introduce unboundedly many distinct paths. | |||
| 53 | - | if len(d.arrayCounts) > 1<<14 { | |||
| 54 | - | d.arrayCounts = nil | |||
| 55 | - | } else { | |||
| 56 | - | for _, p := range d.arrayCounts { | |||
| 57 | - | *p = 0 | |||
| 58 | - | } | |||
| 59 | - | } | |||
| 60 | - | d.tableTarget = reflect.Value{} | |||
| 61 | - | d.tableTargetValid = false | |||
| 62 | - | d.tableFlush = d.tableFlush[:0] | |||
| 63 | - | d.tableParentSlot = slotWriter{} | |||
| 64 | - | d.keyParts = d.keyParts[:0] | |||
| 65 | - | d.strict.Reset() | |||
| 66 | - | } | |||
| 67 | - | ||||
| 68 | - | // Unmarshal deserializes a TOML document into a Go value. | |||
| 69 | - | // | |||
| 70 | - | // It is a shortcut for Decoder.Decode() with the default options. | |||
| 71 | - | func Unmarshal(data []byte, v interface{}) error { | |||
| 72 | - | d := getDecoder(false, false) | |||
| 73 | - | err := d.unmarshal(data, v) | |||
| 74 | - | putDecoder(d) | |||
| 75 | - | return err | |||
| 76 | - | } | |||
| 77 | - | ||||
| 78 | - | // Decoder reads and decode a TOML document from an input stream. | |||
| 79 | - | type Decoder struct { | |||
| 80 | - | // input | |||
| 81 | - | r io.Reader | |||
| 82 | - | ||||
| 83 | - | // global settings | |||
| 84 | - | strict bool | |||
| 85 | - | ||||
| 86 | - | // toggles unmarshaler interface | |||
| 87 | - | unmarshalerInterface bool | |||
| 88 | - | } | |||
| 89 | - | ||||
| 90 | - | // NewDecoder creates a new Decoder that will read from r. | |||
| 91 | - | func NewDecoder(r io.Reader) *Decoder { | |||
| 92 | - | return &Decoder{r: r} | |||
| 93 | - | } | |||
| 94 | - | ||||
| 95 | - | // DisallowUnknownFields causes the Decoder to return an error when the | |||
| 96 | - | // destination is a struct and the input contains a key that does not match a | |||
| 97 | - | // non-ignored field. | |||
| 98 | - | // | |||
| 99 | - | // In that case, the Decoder returns a StrictMissingError that can be used to | |||
| 100 | - | // retrieve the individual errors as well as generate a human readable | |||
| 101 | - | // description of the missing fields. | |||
| 102 | - | func (d *Decoder) DisallowUnknownFields() *Decoder { | |||
| 103 | - | d.strict = true | |||
| 104 | - | return d | |||
| 105 | - | } | |||
| 106 | - | ||||
| 107 | - | // EnableUnmarshalerInterface allows to enable unmarshaler interface. | |||
| 108 | - | // | |||
| 109 | - | // With this feature enabled, types implementing the unstable.Unmarshaler | |||
| 110 | - | // interface can be decoded from any structure of the document. It allows types | |||
| 111 | - | // that don't have a straightforward TOML representation to provide their own | |||
| 112 | - | // decoding logic. | |||
| 113 | - | // | |||
| 114 | - | // The UnmarshalTOML method receives raw TOML bytes: | |||
| 115 | - | // - For single values: the raw value bytes (e.g., `"hello"` for a string) | |||
| 116 | - | // - For tables: all key-value lines belonging to that table | |||
| 117 | - | // - For inline tables/arrays: the raw bytes of the inline structure | |||
| 118 | - | // | |||
| 119 | - | // The unstable.RawMessage type can be used to capture raw TOML bytes for | |||
| 120 | - | // later processing, similar to json.RawMessage. | |||
| 121 | - | // | |||
| 122 | - | // *Unstable:* This method does not follow the compatibility guarantees of | |||
| 123 | - | // semver. It can be changed or removed without a new major version being | |||
| 124 | - | // issued. | |||
| 125 | - | func (d *Decoder) EnableUnmarshalerInterface() *Decoder { | |||
| 126 | - | d.unmarshalerInterface = true | |||
| 127 | - | return d | |||
| 128 | - | } | |||
| 129 | - | ||||
| 130 | - | // Decode the whole content of r into v. | |||
| 131 | - | // | |||
| 132 | - | // By default, values in the document that don't exist in the target Go value | |||
| 133 | - | // are ignored. See Decoder.DisallowUnknownFields() to change this behavior. | |||
| 134 | - | // | |||
| 135 | - | // When a TOML local date, time, or date-time is decoded into a time.Time, its | |||
| 136 | - | // value is represented in time.Local timezone. Otherwise the appropriate Local* | |||
| 137 | - | // structure is used. For time values, precision up to the nanosecond is | |||
| 138 | - | // supported by truncating extra digits. | |||
| 139 | - | // | |||
| 140 | - | // Empty tables decoded in an interface{} create an empty initialized | |||
| 141 | - | // map[string]interface{}. | |||
| 142 | - | // | |||
| 143 | - | // Types implementing the encoding.TextUnmarshaler interface are decoded from a | |||
| 144 | - | // TOML string. | |||
| 145 | - | // | |||
| 146 | - | // When decoding a number, go-toml will return an error if the number is out of | |||
| 147 | - | // bounds for the target type (which includes negative numbers when decoding | |||
| 148 | - | // into an unsigned int). | |||
| 149 | - | // | |||
| 150 | - | // If an error occurs while decoding the content of the document, this function | |||
| 151 | - | // returns a toml.DecodeError, providing context about the issue. When using | |||
| 152 | - | // strict mode and a field is missing, a `toml.StrictMissingError` is | |||
| 153 | - | // returned. In any other case, this function returns a standard Go error. | |||
| 154 | - | // | |||
| 155 | - | // # Type mapping | |||
| 156 | - | // | |||
| 157 | - | // List of supported TOML types and their associated accepted Go types: | |||
| 158 | - | // | |||
| 159 | - | // String -> string | |||
| 160 | - | // Integer -> uint*, int*, depending on size | |||
| 161 | - | // Float -> float*, depending on size | |||
| 162 | - | // Boolean -> bool | |||
| 163 | - | // Offset Date-Time -> time.Time | |||
| 164 | - | // Local Date-time -> LocalDateTime, time.Time | |||
| 165 | - | // Local Date -> LocalDate, time.Time | |||
| 166 | - | // Local Time -> LocalTime, time.Time | |||
| 167 | - | // Array -> slice and array, depending on elements types | |||
| 168 | - | // Table -> map and struct | |||
| 169 | - | // Inline Table -> same as Table | |||
| 170 | - | // Array of Tables -> same as Array and Table | |||
| 171 | - | func (d *Decoder) Decode(v interface{}) error { | |||
| 172 | - | b, err := io.ReadAll(d.r) | |||
| 173 | - | if err != nil { | |||
| 174 | - | return fmt.Errorf("toml: %w", err) | |||
| 175 | - | } | |||
| 176 | - | ||||
| 177 | - | dec := getDecoder(d.strict, d.unmarshalerInterface) | |||
| 178 | - | err = dec.unmarshal(b, v) | |||
| 179 | - | putDecoder(dec) | |||
| 180 | - | return err | |||
| 181 | - | } | |||
| 182 | - | ||||
| 183 | - | // pathPart is one part of the key path leading to a value. Parts that come | |||
| 184 | - | // from the current table header only carry a name; parts that come from the | |||
| 185 | - | // key of the current key-value expression also carry the AST node, and their | |||
| 186 | - | // name is materialized lazily to avoid allocations. | |||
| 187 | - | type pathPart struct { | |||
| 188 | - | name string | |||
| 189 | - | node *unstable.Node | |||
| 190 | - | } | |||
| 191 | - | ||||
| 192 | - | // bytes returns the raw bytes of the key part. | |||
| 193 | - | func (p *pathPart) bytes() []byte { | |||
| 194 | - | if p.node != nil { | |||
| 195 | - | return p.node.Data | |||
| 196 | - | } | |||
| 197 | - | return []byte(p.name) | |||
| 198 | - | } | |||
| 199 | - | ||||
| 200 | - | // str returns the key part as a string, possibly allocating. | |||
| 201 | - | func (p *pathPart) str() string { | |||
| 202 | - | if p.node != nil { | |||
| 203 | - | return string(p.node.Data) | |||
| 204 | - | } | |||
| 205 | - | return p.name | |||
| 206 | - | } | |||
| 207 | - | ||||
| 208 | - | // rawCapture accumulates the raw bytes fed to a type implementing | |||
| 209 | - | // unstable.Unmarshaler for a table target. The target is identified by the | |||
| 210 | - | // parts of its key and the array-table indexes in effect when the capture | |||
| 211 | - | // was created, so that it can be located again once the whole document has | |||
| 212 | - | // been processed (the address of the target may change as slices grow). | |||
| 213 | - | type rawCapture struct { | |||
| 214 | - | names []string | |||
| 215 | - | // indexes[i] is the index to use when reaching a slice or array right | |||
| 216 | - | // before consuming names[i]. indexes[len(names)] is the index of the | |||
| 217 | - | // element when the target is an element of an array table. -1 when not | |||
| 218 | - | // relevant. | |||
| 219 | - | indexes []int | |||
| 220 | - | buf []byte | |||
| 221 | - | } | |||
| 222 | - | ||||
| 223 | - | type decoder struct { | |||
| 224 | - | p unstable.Parser | |||
| 225 | - | ||||
| 226 | - | // strict mode | |||
| 227 | - | strict strict | |||
| 228 | - | ||||
| 229 | - | // toggles unmarshaler interface | |||
| 230 | - | unmarshalerInterface bool | |||
| 231 | - | ||||
| 232 | - | // tracks the duplicate and type consistency of the keys | |||
| 233 | - | seen tracker.SeenTracker | |||
| 234 | - | ||||
| 235 | - | // path of the current table header, as copied strings | |||
| 236 | - | tableKey []string | |||
| 237 | - | ||||
| 238 | - | // true when the expressions under the current table header cannot be | |||
| 239 | - | // stored anywhere and should be skipped | |||
| 240 | - | skipUntilTable bool | |||
| 241 | - | ||||
| 242 | - | // scratch buffer for the key path of the current expression | |||
| 243 | - | path []pathPart | |||
| 244 | - | ||||
| 245 | - | // raw captures for the unmarshaler interface, in order of first | |||
| 246 | - | // appearance. captureIdx is the index of the capture the current table | |||
| 247 | - | // belongs to, or -1. | |||
| 248 | - | captures []rawCapture | |||
| 249 | - | captureIdx int | |||
| 250 | - | ||||
| 251 | - | // segIdx[i] records the array element index used when traversing a | |||
| 252 | - | // slice or array right before consuming the i-th part of the current | |||
| 253 | - | // table key. Reset for each table expression. | |||
| 254 | - | segIdx []int | |||
| 255 | - | ||||
| 256 | - | // arrayCounts tracks the number of elements appended to fixed-size | |||
| 257 | - | // arrays used as array tables, keyed by the NUL-joined key parts. | |||
| 258 | - | // Values are pointer slots so that updating an existing path does not | |||
| 259 | - | // allocate a new key string. | |||
| 260 | - | arrayCounts map[string]*int | |||
| 261 | - | ||||
| 262 | - | // Cached target of the current table, so that key-values do not need to | |||
| 263 | - | // walk the document structure from the root for every expression. | |||
| 264 | - | // tableFlush holds the write-backs to perform when leaving the table | |||
| 265 | - | // (for targets reached through map values, which are copies). | |||
| 266 | - | // tableParentSlot stores a replacement of the target itself (e.g. a nil | |||
| 267 | - | // map that was allocated) into its parent. | |||
| 268 | - | tableTarget reflect.Value | |||
| 269 | - | tableTargetValid bool | |||
| 270 | - | tableFlush []flushOp | |||
| 271 | - | tableParentSlot slotWriter | |||
| 272 | - | ||||
| 273 | - | // strKey is a reusable string value used as map key, so that map | |||
| 274 | - | // operations with string keys do not need to allocate a boxed key for | |||
| 275 | - | // every access. It must be refreshed with stringMapKey immediately | |||
| 276 | - | // before each use: any recursive call may overwrite it. | |||
| 277 | - | strKey reflect.Value | |||
| 278 | - | ||||
| 279 | - | // interned de-duplicates key strings: documents repeat the same keys | |||
| 280 | - | // over and over, and the table survives pooling, so repeated decodes | |||
| 281 | - | // of similar documents stop allocating key strings altogether. | |||
| 282 | - | interned map[string]string | |||
| 283 | - | ||||
| 284 | - | // pathScratch is the buffer used by joinPath. | |||
| 285 | - | pathScratch []byte | |||
| 286 | - | ||||
| 287 | - | // keyParts is the reusable buffer holding the decoded parts of the key of | |||
| 288 | - | // the current expression in the fused generic decode path. | |||
| 289 | - | keyParts [][]byte | |||
| 290 | - | } | |||
| 291 | - | ||||
| 292 | - | // slotWriter remembers how to store a value at some location of the target | |||
| 293 | - | // structure. Implemented as a struct instead of a closure to avoid | |||
| 294 | - | // allocations. | |||
| 295 | - | type slotWriter struct { | |||
| 296 | - | kind uint8 // 0: none, 1: slot.Set, 2: m.SetMapIndex(k, ...), 3: m.SetMapIndex(string key ks, ...) | |||
| 297 | - | slot reflect.Value | |||
| 298 | - | m reflect.Value | |||
| 299 | - | k reflect.Value | |||
| 300 | - | ks string | |||
| 301 | - | } | |||
| 302 | - | ||||
| 303 | - | func (d *decoder) storeSlot(s *slotWriter, nv reflect.Value) { | |||
| 304 | - | switch s.kind { | |||
| 305 | - | case 1: | |||
| 306 | - | if s.slot.CanSet() { | |||
| 307 | - | s.slot.Set(nv) | |||
| 308 | - | } | |||
| 309 | - | case 2: | |||
| 310 | - | s.m.SetMapIndex(s.k, nv) | |||
| 311 | - | case 3: | |||
| 312 | - | s.m.SetMapIndex(d.stringMapKey(s.ks), nv) | |||
| 313 | - | } | |||
| 314 | - | } | |||
| 315 | - | ||||
| 316 | - | // flushOp stores val using w when the table is flushed. | |||
| 317 | - | type flushOp struct { | |||
| 318 | - | w slotWriter | |||
| 319 | - | val reflect.Value | |||
| 320 | - | } | |||
| 321 | - | ||||
| 322 | - | // flushTable performs the pending write-backs of the cached table target, in | |||
| 323 | - | // reverse order so that inner copies land before their parents are stored. | |||
| 324 | - | func (d *decoder) flushTable() { | |||
| 325 | - | for i := len(d.tableFlush) - 1; i >= 0; i-- { | |||
| 326 | - | d.storeSlot(&d.tableFlush[i].w, d.tableFlush[i].val) | |||
| 327 | - | } | |||
| 328 | - | d.tableFlush = d.tableFlush[:0] | |||
| 329 | - | d.tableTargetValid = false | |||
| 330 | - | d.tableParentSlot = slotWriter{} | |||
| 331 | - | d.tableTarget = reflect.Value{} | |||
| 332 | - | } | |||
| 333 | - | ||||
| 334 | - | // intern returns the string corresponding to the given bytes, reusing a | |||
| 335 | - | // previous allocation when the same key has been seen before. | |||
| 336 | - | func (d *decoder) intern(b []byte) string { | |||
| 337 | - | if s, ok := d.interned[string(b)]; ok { // does not allocate | |||
| 338 | - | return s | |||
| 339 | - | } | |||
| 340 | - | if d.interned == nil { | |||
| 341 | - | d.interned = make(map[string]string, 64) | |||
| 342 | - | } else if len(d.interned) >= 1<<14 { | |||
| 343 | - | // Safety valve for adversarial inputs: do not let the table grow | |||
| 344 | - | // without bounds. | |||
| 345 | - | for k := range d.interned { | |||
| 346 | - | delete(d.interned, k) | |||
| 347 | - | } | |||
| 348 | - | } | |||
| 349 | - | s := string(b) | |||
| 350 | - | d.interned[s] = s | |||
| 351 | - | return s | |||
| 352 | - | } | |||
| 353 | - | ||||
| 354 | - | // partString returns the name of a path part, interning it when it comes | |||
| 355 | - | // from the document. | |||
| 356 | - | func (d *decoder) partString(p *pathPart) string { | |||
| 357 | - | if p.node != nil { | |||
| 358 | - | return d.intern(p.node.Data) | |||
| 359 | - | } | |||
| 360 | - | return p.name | |||
| 361 | - | } | |||
| 362 | - | ||||
| 363 | - | // stringMapKey returns a reflect.Value holding the given string, reusing the | |||
| 364 | - | // same allocation every time. The result must be used (the map operation | |||
| 365 | - | // performed) before any recursive call, which may overwrite the buffer. | |||
| 366 | - | func (d *decoder) stringMapKey(s string) reflect.Value { | |||
| 367 | - | if !d.strKey.IsValid() { | |||
| 368 | - | d.strKey = reflect.New(stringType).Elem() | |||
| 369 | - | } | |||
| 370 | - | d.strKey.SetString(s) | |||
| 371 | - | return d.strKey | |||
| 372 | - | } | |||
| 373 | - | ||||
| 374 | - | // joinPath builds the NUL-joined representation of a key path in the | |||
| 375 | - | // decoder's scratch buffer. The result is only valid until the next call. | |||
| 376 | - | func (d *decoder) joinPath(parts []string) []byte { | |||
| 377 | - | d.pathScratch = d.pathScratch[:0] | |||
| 378 | - | for i, p := range parts { | |||
| 379 | - | if i > 0 { | |||
| 380 | - | d.pathScratch = append(d.pathScratch, 0) | |||
| 381 | - | } | |||
| 382 | - | d.pathScratch = append(d.pathScratch, p...) | |||
| 383 | - | } | |||
| 384 | - | return d.pathScratch | |||
| 385 | - | } | |||
| 386 | - | ||||
| 387 | - | // arrayCount returns the number of elements appended so far to the array | |||
| 388 | - | // table at the given path. | |||
| 389 | - | func (d *decoder) arrayCount(key []byte) int { | |||
| 390 | - | if d.arrayCounts == nil { | |||
| 391 | - | return 0 | |||
| 392 | - | } | |||
| 393 | - | if p := d.arrayCounts[string(key)]; p != nil { // does not allocate | |||
| 394 | - | return *p | |||
| 395 | - | } | |||
| 396 | - | return 0 | |||
| 397 | - | } | |||
| 398 | - | ||||
| 399 | - | func (d *decoder) setArrayCount(key []byte, n int) { | |||
| 400 | - | if d.arrayCounts == nil { | |||
| 401 | - | d.arrayCounts = map[string]*int{} | |||
| 402 | - | } | |||
| 403 | - | if p := d.arrayCounts[string(key)]; p != nil { // does not allocate | |||
| 404 | - | *p = n | |||
| 405 | - | return | |||
| 406 | - | } | |||
| 407 | - | v := n | |||
| 408 | - | d.arrayCounts[string(key)] = &v | |||
| 409 | - | } | |||
| 410 | - | ||||
| 411 | - | // resetChildArrayCounts forgets the counts of all the array tables under | |||
| 412 | - | // the given path, so that a new element starts fresh. | |||
| 413 | - | func (d *decoder) resetChildArrayCounts(key []byte) { | |||
| 414 | - | if len(d.arrayCounts) == 0 { | |||
| 415 | - | return | |||
| 416 | - | } | |||
| 417 | - | for k, p := range d.arrayCounts { | |||
| 418 | - | // Prefix match without building the prefix string: same bytes as | |||
| 419 | - | // key, followed by the NUL separator. | |||
| 420 | - | if len(k) > len(key) && k[len(key)] == 0 && k[:len(key)] == string(key) { | |||
| 421 | - | // Zero instead of delete: the next element of the parent table | |||
| 422 | - | // will reuse the slot without allocating a new key. | |||
| 423 | - | *p = 0 | |||
| 424 | - | } | |||
| 425 | - | } | |||
| 426 | - | } | |||
| 427 | - | ||||
| 428 | - | func (d *decoder) typeMismatchError(toml string, target reflect.Type, highlight []byte) error { | |||
| 429 | - | return &typeMismatchError{ | |||
| 430 | - | toml: toml, | |||
| 431 | - | target: target, | |||
| 432 | - | highlight: highlight, | |||
| 433 | - | } | |||
| 434 | - | } | |||
| 435 | - | ||||
| 436 | - | type typeMismatchError struct { | |||
| 437 | - | toml string | |||
| 438 | - | target reflect.Type | |||
| 439 | - | highlight []byte | |||
| 440 | - | // key is the TOML key being processed when the mismatch occurred. It is | |||
| 441 | - | // populated lazily as the error propagates back up to the key-value | |||
| 442 | - | // handler (see contextualizeError). | |||
| 443 | - | key Key | |||
| 444 | - | } | |||
| 445 | - | ||||
| 446 | - | func (e *typeMismatchError) Error() string { | |||
| 447 | - | return fmt.Sprintf("cannot decode TOML %s into %s", e.toml, e.target) | |||
| 448 | - | } | |||
| 449 | - | ||||
| 450 | - | // contextualizeError attaches the TOML key currently being processed to errors | |||
| 451 | - | // raised while decoding a key-value expression, so that DecodeError.Key() | |||
| 452 | - | // reports the offending key (e.g. on type mismatch errors). The current key is | |||
| 453 | - | // reconstructed from d.path; when the table target is cached, d.path holds only | |||
| 454 | - | // the key-value parts, so the table key prefix is prepended. This only runs on | |||
| 455 | - | // the error path and adds no cost to successful decodes. | |||
| 456 | - | func (d *decoder) contextualizeError(err error, withTableKey bool) error { | |||
| 457 | - | var mm *typeMismatchError | |||
| 458 | - | if errors.As(err, &mm) { | |||
| 459 | - | if mm.key == nil { | |||
| 460 | - | mm.key = d.currentKey(withTableKey) | |||
| 461 | - | } | |||
| 462 | - | return err | |||
| 463 | - | } | |||
| 464 | - | var perr *unstable.ParserError | |||
| 465 | - | if errors.As(err, &perr) { | |||
| 466 | - | if perr.Key == nil { | |||
| 467 | - | perr.Key = d.currentKey(withTableKey) | |||
| 468 | - | } | |||
| 469 | - | } | |||
| 470 | - | return err | |||
| 471 | - | } | |||
| 472 | - | ||||
| 473 | - | // currentKey reconstructs the full TOML key being processed from the decoder's | |||
| 474 | - | // path. When withTableKey is true, d.path contains only the key-value parts | |||
| 475 | - | // (the table target is cached) and the table key is prepended. | |||
| 476 | - | func (d *decoder) currentKey(withTableKey bool) Key { | |||
| 477 | - | n := len(d.path) | |||
| 478 | - | if withTableKey { | |||
| 479 | - | n += len(d.tableKey) | |||
| 480 | - | } | |||
| 481 | - | key := make(Key, 0, n) | |||
| 482 | - | if withTableKey { | |||
| 483 | - | key = append(key, d.tableKey...) | |||
| 484 | - | } | |||
| 485 | - | for i := range d.path { | |||
| 486 | - | key = append(key, d.path[i].str()) | |||
| 487 | - | } | |||
| 488 | - | return key | |||
| 489 | - | } | |||
| 490 | - | ||||
| 491 | - | func (d *decoder) unmarshal(data []byte, v interface{}) error { | |||
| 492 | - | r := reflect.ValueOf(v) | |||
| 493 | - | if r.Kind() != reflect.Ptr { | |||
| 494 | - | return fmt.Errorf("toml: decoding can only be performed into a pointer, not %s", r.Kind()) | |||
| 495 | - | } | |||
| 496 | - | if r.IsNil() { | |||
| 497 | - | return errors.New("toml: decoding pointer target cannot be nil") | |||
| 498 | - | } | |||
| 499 | - | ||||
| 500 | - | root := r.Elem() | |||
| 501 | - | ||||
| 502 | - | d.captureIdx = -1 | |||
| 503 | - | d.p.Reset(data) | |||
| 504 | - | ||||
| 505 | - | // Fully generic targets (interface{} or map[string]interface{}) are | |||
| 506 | - | // decoded straight into native Go maps and slices, with no reflection on | |||
| 507 | - | // the document structure at all. This covers the common "decode arbitrary | |||
| 508 | - | // TOML into a map" case, including every standard benchmark dataset. | |||
| 509 | - | if !d.unmarshalerInterface { | |||
| 510 | - | if k := root.Kind(); k == reflect.Interface || (k == reflect.Map && root.Type() == mapStringInterfaceType) { | |||
| 511 | - | return d.unmarshalFused(root, data) | |||
| 512 | - | } | |||
| 513 | - | } | |||
| 514 | - | ||||
| 515 | - | // When the root target itself implements the Unmarshaler interface, the | |||
| 516 | - | // whole document decodes into it. Open a capture spanning the entire | |||
| 517 | - | // document up front: the top-level key-values then flow through the | |||
| 518 | - | // existing capture branch and any tables attach to it via resumeCapture, | |||
| 519 | - | // so UnmarshalTOML receives the assembled document exactly once. | |||
| 520 | - | if d.unmarshalerInterface && hasUnmarshaler(root) { | |||
| 521 | - | d.startRootCapture() | |||
| 522 | - | } | |||
| 523 | - | ||||
| 524 | - | for d.p.NextExpression() { | |||
| 525 | - | err := d.handleRootExpression(d.p.Expression(), root) | |||
| 526 | - | if err != nil { | |||
| 527 | - | return d.wrapError(data, err) | |||
| 528 | - | } | |||
| 529 | - | } | |||
| 530 | - | if err := d.p.Error(); err != nil { | |||
| 531 | - | var perr *unstable.ParserError | |||
| 532 | - | if errors.As(err, &perr) { | |||
| 533 | - | return wrapDecodeError(data, perr) | |||
| 534 | - | } | |||
| 535 | - | return err | |||
| 536 | - | } | |||
| 537 | - | ||||
| 538 | - | d.flushTable() | |||
| 539 | - | ||||
| 540 | - | // Deliver the accumulated raw documents to the unmarshaler-interface | |||
| 541 | - | // targets. | |||
| 542 | - | for i := range d.captures { | |||
| 543 | - | nv, err := d.resolveCapture(root, &d.captures[i], 0, false) | |||
| 544 | - | if err != nil { | |||
| 545 | - | return err | |||
| 546 | - | } | |||
| 547 | - | if nv.IsValid() { | |||
| 548 | - | root.Set(nv) | |||
| 549 | - | } | |||
| 550 | - | } | |||
| 551 | - | ||||
| 552 | - | // An empty document into a generic target still initializes it. | |||
| 553 | - | switch root.Kind() { | |||
| 554 | - | case reflect.Map: | |||
| 555 | - | if root.IsNil() { | |||
| 556 | - | root.Set(reflect.MakeMap(root.Type())) | |||
| 557 | - | } | |||
| 558 | - | case reflect.Interface: | |||
| 559 | - | if root.IsNil() { | |||
| 560 | - | root.Set(reflect.ValueOf(map[string]interface{}{})) | |||
| 561 | - | } | |||
| 562 | - | default: | |||
| 563 | - | } | |||
| 564 | - | ||||
| 565 | - | return d.strict.Error(data) | |||
| 566 | - | } | |||
| 567 | - | ||||
| 568 | - | // setAnyKey assigns the value of a key-value into the native map m, following | |||
| 569 | - | // the (possibly dotted) key and creating intermediate maps as needed. | |||
| 570 | - | func (d *decoder) setAnyKey(m map[string]interface{}, key unstable.Iterator, value *unstable.Node) error { | |||
| 571 | - | cur := m | |||
| 572 | - | for key.Next() { | |||
| 573 | - | name := d.intern(key.Node().Data) | |||
| 574 | - | if key.IsLast() { | |||
| 575 | - | av, err := d.decodeAny(value) | |||
| 576 | - | if err != nil { | |||
| 577 | - | return err | |||
| 578 | - | } | |||
| 579 | - | cur[name] = av | |||
| 580 | - | return nil | |||
| 581 | - | } | |||
| 582 | - | cur = d.anyChildTable(cur, name) | |||
| 583 | - | } | |||
| 584 | - | return nil | |||
| 585 | - | } | |||
| 586 | - | ||||
| 587 | - | // anyChildTable returns the child table at name within cur, creating it if | |||
| 588 | - | // absent and descending into the current (last) element when an array table | |||
| 589 | - | // occupies the slot. A non-container in the slot cannot occur for a document | |||
| 590 | - | // the seen-tracker has accepted. | |||
| 591 | - | func (d *decoder) anyChildTable(cur map[string]interface{}, name string) map[string]interface{} { | |||
| 592 | - | switch v := cur[name].(type) { | |||
| 593 | - | case map[string]interface{}: | |||
| 594 | - | return v | |||
| 595 | - | case []interface{}: | |||
| 596 | - | if len(v) > 0 { | |||
| 597 | - | if last, ok := v[len(v)-1].(map[string]interface{}); ok { | |||
| 598 | - | return last | |||
| 599 | - | } | |||
| 600 | - | } | |||
| 601 | - | } | |||
| 602 | - | nm := map[string]interface{}{} | |||
| 603 | - | cur[name] = nm | |||
| 604 | - | return nm | |||
| 605 | - | } | |||
| 606 | - | ||||
| 607 | - | // wrapError gives document context to errors generated while processing an | |||
| 608 | - | // expression. | |||
| 609 | - | func (d *decoder) wrapError(data []byte, err error) error { | |||
| 610 | - | var perr *unstable.ParserError | |||
| 611 | - | if errors.As(err, &perr) { | |||
| 612 | - | return wrapDecodeError(data, perr) | |||
| 613 | - | } | |||
| 614 | - | var mm *typeMismatchError | |||
| 615 | - | if errors.As(err, &mm) { | |||
| 616 | - | return wrapDecodeError(data, &unstable.ParserError{ | |||
| 617 | - | Highlight: mm.highlight, | |||
| 618 | - | Message: mm.Error(), | |||
| 619 | - | Key: mm.key, | |||
| 620 | - | }) | |||
| 621 | - | } | |||
| 622 | - | return err | |||
| 623 | - | } | |||
| 624 | - | ||||
| 625 | - | // keyedError turns a bare error raised while processing an expression into a | |||
| 626 | - | // ParserError carrying the position and key of that expression, so that it is | |||
| 627 | - | // reported as a DecodeError with context. It is used for the errors returned | |||
| 628 | - | // by SeenTracker.CheckExpression (redefinitions and duplicate keys, see issue | |||
| 629 | - | // #668) and for table placement errors raised by walkTable (see issue #806). | |||
| 630 | - | // | |||
| 631 | - | // The highlight spans the expression's key. Unlike Node.Raw, key nodes always | |||
| 632 | - | // carry a Raw range, so this works for tables and array tables too (whose own | |||
| 633 | - | // Raw range is not set by the parser). For a duplicate detected inside an | |||
| 634 | - | // inline table, node is the enclosing key-value expression, so the error | |||
| 635 | - | // points at that expression's key. | |||
| 636 | - | func (d *decoder) keyedError(node *unstable.Node, err error) error { | |||
| 637 | - | if err == nil { | |||
| 638 | - | return nil | |||
| 639 | - | } | |||
| 640 | - | ||||
| 641 | - | var key Key | |||
| 642 | - | var start, end unstable.Range | |||
| 643 | - | it := node.Key() | |||
| 644 | - | for it.Next() { | |||
| 645 | - | n := it.Node() | |||
| 646 | - | key = append(key, string(n.Data)) | |||
| 647 | - | if len(key) == 1 { | |||
| 648 | - | start = n.Raw | |||
| 649 | - | } | |||
| 650 | - | end = n.Raw | |||
| 651 | - | } | |||
| 652 | - | ||||
| 653 | - | var highlight []byte | |||
| 654 | - | if len(key) > 0 { | |||
| 655 | - | highlight = d.p.Raw(unstable.Range{ | |||
| 656 | - | Offset: start.Offset, | |||
| 657 | - | Length: end.Offset + end.Length - start.Offset, | |||
| 658 | - | }) | |||
| 659 | - | } | |||
| 660 | - | ||||
| 661 | - | return &unstable.ParserError{ | |||
| 662 | - | Highlight: highlight, | |||
| 663 | - | Message: strings.TrimPrefix(err.Error(), "toml: "), | |||
| 664 | - | Key: key, | |||
| 665 | - | } | |||
| 666 | - | } | |||
| 667 | - | ||||
| 668 | - | func (d *decoder) handleRootExpression(expr *unstable.Node, root reflect.Value) error { | |||
| 669 | - | first, err := d.seen.CheckExpression(expr) | |||
| 670 | - | if err != nil { | |||
| 671 | - | return d.keyedError(expr, err) | |||
| 672 | - | } | |||
| 673 | - | ||||
| 674 | - | switch expr.Kind { | |||
| 675 | - | case unstable.KeyValue: | |||
| 676 | - | if d.skipUntilTable { | |||
| 677 | - | return nil | |||
| 678 | - | } | |||
| 679 | - | if d.captureIdx >= 0 { | |||
| 680 | - | d.captureKeyValue(expr) | |||
| 681 | - | return nil | |||
| 682 | - | } | |||
| 683 | - | return d.handleKeyValueExpression(expr, root) | |||
| 684 | - | case unstable.Table: | |||
| 685 | - | d.flushTable() | |||
| 686 | - | d.skipUntilTable = false | |||
| 687 | - | d.captureIdx = -1 | |||
| 688 | - | d.strict.EnterTable(expr) | |||
| 689 | - | return d.handleTableExpression(expr, root, false, first) | |||
| 690 | - | case unstable.ArrayTable: | |||
| 691 | - | d.flushTable() | |||
| 692 | - | d.skipUntilTable = false | |||
| 693 | - | d.captureIdx = -1 | |||
| 694 | - | d.strict.EnterTable(expr) | |||
| 695 | - | return d.handleTableExpression(expr, root, true, first) | |||
| 696 | - | default: | |||
| 697 | - | return unstable.NewParserError(expr.Data, "unsupported expression kind %s", expr.Kind) | |||
| 698 | - | } | |||
| 699 | - | } | |||
| 700 | - | ||||
| 701 | - | // updateTableKey copies the parts of the key of a table expression into | |||
| 702 | - | // tableKey. | |||
| 703 | - | func (d *decoder) updateTableKey(expr *unstable.Node) { | |||
| 704 | - | d.tableKey = d.tableKey[:0] | |||
| 705 | - | it := expr.Key() | |||
| 706 | - | for it.Next() { | |||
| 707 | - | d.tableKey = append(d.tableKey, d.intern(it.Node().Data)) | |||
| 708 | - | } | |||
| 709 | - | } | |||
| 710 | - | ||||
| 711 | - | func (d *decoder) handleTableExpression(expr *unstable.Node, root reflect.Value, isArrayTable bool, first bool) error { | |||
| 712 | - | d.updateTableKey(expr) | |||
| 713 | - | ||||
| 714 | - | // Check whether this table belongs to an exisiting raw capture (split | |||
| 715 | - | // tables, or children of a table assigned to an Unmarshaler). | |||
| 716 | - | if d.unmarshalerInterface { | |||
| 717 | - | if d.resumeCapture(expr) { | |||
| 718 | - | return nil | |||
| 719 | - | } | |||
| 720 | - | } | |||
| 721 | - | ||||
| 722 | - | // Reset the per-segment array indexes. | |||
| 723 | - | d.segIdx = d.segIdx[:0] | |||
| 724 | - | for i := 0; i <= len(d.tableKey); i++ { | |||
| 725 | - | d.segIdx = append(d.segIdx, -1) | |||
| 726 | - | } | |||
| 727 | - | ||||
| 728 | - | return d.walkTable(root, expr, isArrayTable, first) | |||
| 729 | - | } | |||
| 730 | - | ||||
| 731 | - | // newContainerElem returns a fresh element for a slice of the given element | |||
| 732 | - | // type. Plain interface elements start out as an empty table. | |||
| 733 | - | func newContainerElem(et reflect.Type) reflect.Value { | |||
| 734 | - | if et == interfaceType { | |||
| 735 | - | return reflect.ValueOf(map[string]interface{}{}) | |||
| 736 | - | } | |||
| 737 | - | return reflect.New(et).Elem() | |||
| 738 | - | } | |||
| 739 | - | ||||
| 740 | - | // walkTable processes a [table] or [[array table]] header: it creates the | |||
| 741 | - | // intermediate containers, appends array-table elements, applies the strict | |||
| 742 | - | // policy, registers unmarshaler-interface captures, and caches the target | |||
| 743 | - | // container so that the key-values that follow are stored directly. | |||
| 744 | - | // | |||
| 745 | - | // Map values are not addressable: when one needs in-place mutations (struct | |||
| 746 | - | // or array values), a copy is made and registered to be stored back when the | |||
| 747 | - | // table changes (see flushTable). Maps and slices are references and are | |||
| 748 | - | // traversed without copies. | |||
| 749 | - | func (d *decoder) walkTable(root reflect.Value, expr *unstable.Node, isArrayTable bool, first bool) error { | |||
| 750 | - | v := root | |||
| 751 | - | pf := slotWriter{kind: 1, slot: root} | |||
| 752 | - | idx := 0 | |||
| 753 | - | ||||
| 754 | - | walk: | |||
| 755 | - | for { | |||
| 756 | - | // Dereference pointers in place. | |||
| 757 | - | for v.Kind() == reflect.Ptr { | |||
| 758 | - | if v.IsNil() { | |||
| 759 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 760 | - | } | |||
| 761 | - | elem := v.Elem() | |||
| 762 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 763 | - | v = elem | |||
| 764 | - | } | |||
| 765 | - | ||||
| 766 | - | // Tables assigned to a type implementing the unmarshaler interface | |||
| 767 | - | // are captured as raw bytes, delivered once the document is read. | |||
| 768 | - | if d.unmarshalerInterface && hasUnmarshaler(v) { | |||
| 769 | - | d.startCapture(idx, expr) | |||
| 770 | - | return nil | |||
| 771 | - | } | |||
| 772 | - | ||||
| 773 | - | if idx >= len(d.tableKey) { | |||
| 774 | - | break walk | |||
| 775 | - | } | |||
| 776 | - | ||||
| 777 | - | name := d.tableKey[idx] | |||
| 778 | - | ||||
| 779 | - | switch v.Kind() { | |||
| 780 | - | case reflect.Interface: | |||
| 781 | - | if !v.IsNil() { | |||
| 782 | - | c := v.Elem() | |||
| 783 | - | if k := c.Kind(); k == reflect.Map || k == reflect.Slice { | |||
| 784 | - | // Reference types: mutations are visible through the | |||
| 785 | - | // existing interface value. | |||
| 786 | - | v = c | |||
| 787 | - | continue | |||
| 788 | - | } | |||
| 789 | - | } | |||
| 790 | - | // Anything else is replaced by a fresh generic map. | |||
| 791 | - | if !mapStringInterfaceType.AssignableTo(v.Type()) { | |||
| 792 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Type())) | |||
| 793 | - | } | |||
| 794 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |||
| 795 | - | d.storeSlot(&pf, fresh) | |||
| 796 | - | v = fresh | |||
| 797 | - | case reflect.Slice: | |||
| 798 | - | if v.Len() == 0 { | |||
| 799 | - | // Implicit creation of the first element: the array table | |||
| 800 | - | // that would create it has not been seen yet (issue 995). | |||
| 801 | - | if v.IsNil() { | |||
| 802 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |||
| 803 | - | } | |||
| 804 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |||
| 805 | - | d.storeSlot(&pf, v) | |||
| 806 | - | } | |||
| 807 | - | n := v.Len() - 1 | |||
| 808 | - | d.segIdx[idx] = n | |||
| 809 | - | elem := v.Index(n) | |||
| 810 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 811 | - | v = elem | |||
| 812 | - | case reflect.Array: | |||
| 813 | - | key := d.joinPath(d.tableKey[:idx]) | |||
| 814 | - | cnt := d.arrayCount(key) | |||
| 815 | - | if cnt == 0 { | |||
| 816 | - | cnt = 1 | |||
| 817 | - | d.setArrayCount(key, 1) | |||
| 818 | - | } | |||
| 819 | - | if cnt > v.Len() { | |||
| 820 | - | return d.keyedError(expr, fmt.Errorf("cannot reach element %d of array of size %d", cnt-1, v.Len())) | |||
| 821 | - | } | |||
| 822 | - | d.segIdx[idx] = cnt - 1 | |||
| 823 | - | elem := v.Index(cnt - 1) | |||
| 824 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 825 | - | v = elem | |||
| 826 | - | case reflect.Map: | |||
| 827 | - | if v.IsNil() { | |||
| 828 | - | nm := reflect.MakeMap(v.Type()) | |||
| 829 | - | d.storeSlot(&pf, nm) | |||
| 830 | - | v = nm | |||
| 831 | - | } | |||
| 832 | - | var key reflect.Value | |||
| 833 | - | var w slotWriter | |||
| 834 | - | if v.Type().Key() == stringType { | |||
| 835 | - | key = d.stringMapKey(name) | |||
| 836 | - | w = slotWriter{kind: 3, m: v, ks: name} | |||
| 837 | - | } else { | |||
| 838 | - | k, err := makeMapKey(v.Type().Key(), name) | |||
| 839 | - | if err != nil { | |||
| 840 | - | return err | |||
| 841 | - | } | |||
| 842 | - | key = k | |||
| 843 | - | w = slotWriter{kind: 2, m: v, k: k} | |||
| 844 | - | } | |||
| 845 | - | ||||
| 846 | - | elem := v.MapIndex(key) | |||
| 847 | - | ||||
| 848 | - | // The last part of an array table is finalized as a slice | |||
| 849 | - | // container: do not materialize a table for it. | |||
| 850 | - | if isArrayTable && idx == len(d.tableKey)-1 { | |||
| 851 | - | et := v.Type().Elem() | |||
| 852 | - | switch et.Kind() { | |||
| 853 | - | case reflect.Interface, reflect.Slice, reflect.Array: | |||
| 854 | - | if elem.IsValid() { | |||
| 855 | - | v = elem | |||
| 856 | - | } else { | |||
| 857 | - | v = reflect.Zero(et) | |||
| 858 | - | } | |||
| 859 | - | pf = w | |||
| 860 | - | idx++ | |||
| 861 | - | continue | |||
| 862 | - | default: | |||
| 863 | - | } | |||
| 864 | - | } | |||
| 865 | - | ||||
| 866 | - | if elem.IsValid() { | |||
| 867 | - | ce := elem | |||
| 868 | - | ceIface := false | |||
| 869 | - | if ce.Kind() == reflect.Interface { | |||
| 870 | - | ceIface = true | |||
| 871 | - | if !ce.IsNil() { | |||
| 872 | - | ce = ce.Elem() | |||
| 873 | - | } | |||
| 874 | - | } | |||
| 875 | - | switch ce.Kind() { | |||
| 876 | - | case reflect.Map, reflect.Slice: | |||
| 877 | - | pf = w | |||
| 878 | - | v = ce | |||
| 879 | - | case reflect.Ptr: | |||
| 880 | - | if ce.IsNil() { | |||
| 881 | - | np := reflect.New(ce.Type().Elem()) | |||
| 882 | - | d.storeSlot(&w, np) | |||
| 883 | - | ce = np | |||
| 884 | - | } | |||
| 885 | - | pf = w | |||
| 886 | - | v = ce | |||
| 887 | - | case reflect.Struct, reflect.Array: | |||
| 888 | - | if ceIface { | |||
| 889 | - | // Interface-held non-generic content is replaced. | |||
| 890 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |||
| 891 | - | d.storeSlot(&w, fresh) | |||
| 892 | - | pf = w | |||
| 893 | - | v = fresh | |||
| 894 | - | } else { | |||
| 895 | - | tmp := reflect.New(elem.Type()).Elem() | |||
| 896 | - | tmp.Set(elem) | |||
| 897 | - | d.tableFlush = append(d.tableFlush, flushOp{w: w, val: tmp}) | |||
| 898 | - | pf = slotWriter{kind: 1, slot: tmp} | |||
| 899 | - | v = tmp | |||
| 900 | - | } | |||
| 901 | - | default: | |||
| 902 | - | if !ceIface { | |||
| 903 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", ce.Type())) | |||
| 904 | - | } | |||
| 905 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |||
| 906 | - | d.storeSlot(&w, fresh) | |||
| 907 | - | pf = w | |||
| 908 | - | v = fresh | |||
| 909 | - | } | |||
| 910 | - | } else { | |||
| 911 | - | et := v.Type().Elem() | |||
| 912 | - | switch et.Kind() { | |||
| 913 | - | case reflect.Interface: | |||
| 914 | - | if !mapStringInterfaceType.AssignableTo(et) { | |||
| 915 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", et)) | |||
| 916 | - | } | |||
| 917 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |||
| 918 | - | d.storeSlot(&w, fresh) | |||
| 919 | - | pf = w | |||
| 920 | - | v = fresh | |||
| 921 | - | case reflect.Map: | |||
| 922 | - | nm := reflect.MakeMap(et) | |||
| 923 | - | d.storeSlot(&w, nm) | |||
| 924 | - | pf = w | |||
| 925 | - | v = nm | |||
| 926 | - | case reflect.Ptr: | |||
| 927 | - | np := reflect.New(et.Elem()) | |||
| 928 | - | d.storeSlot(&w, np) | |||
| 929 | - | pf = w | |||
| 930 | - | v = np | |||
| 931 | - | case reflect.Struct, reflect.Array, reflect.Slice: | |||
| 932 | - | tmp := reflect.New(et).Elem() | |||
| 933 | - | d.tableFlush = append(d.tableFlush, flushOp{w: w, val: tmp}) | |||
| 934 | - | pf = slotWriter{kind: 1, slot: tmp} | |||
| 935 | - | v = tmp | |||
| 936 | - | default: | |||
| 937 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", et)) | |||
| 938 | - | } | |||
| 939 | - | } | |||
| 940 | - | idx++ | |||
| 941 | - | case reflect.Struct: | |||
| 942 | - | plan := planForType(v.Type()) | |||
| 943 | - | f, found := plan.lookup(name) | |||
| 944 | - | if !found { | |||
| 945 | - | d.strict.MissingTable(expr) | |||
| 946 | - | d.skipUntilTable = true | |||
| 947 | - | return nil | |||
| 948 | - | } | |||
| 949 | - | fv, err := fieldByIndexAlloc(v, f.index) | |||
| 950 | - | if err != nil { | |||
| 951 | - | return err | |||
| 952 | - | } | |||
| 953 | - | pf = slotWriter{kind: 1, slot: fv} | |||
| 954 | - | v = fv | |||
| 955 | - | idx++ | |||
| 956 | - | default: | |||
| 957 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Kind())) | |||
| 958 | - | } | |||
| 959 | - | } | |||
| 960 | - | ||||
| 961 | - | if isArrayTable { | |||
| 962 | - | akey := d.joinPath(d.tableKey) | |||
| 963 | - | d.resetChildArrayCounts(akey) | |||
| 964 | - | ||||
| 965 | - | // Unwrap an interface container. | |||
| 966 | - | if v.Kind() == reflect.Interface { | |||
| 967 | - | var slice []interface{} | |||
| 968 | - | if !v.IsNil() { | |||
| 969 | - | if s, ok := v.Elem().Interface().([]interface{}); ok { | |||
| 970 | - | slice = s | |||
| 971 | - | } | |||
| 972 | - | } | |||
| 973 | - | if first { | |||
| 974 | - | slice = slice[:0] | |||
| 975 | - | } | |||
| 976 | - | m := map[string]interface{}{} | |||
| 977 | - | slice = append(slice, m) | |||
| 978 | - | sv := reflect.ValueOf(slice) | |||
| 979 | - | d.storeSlot(&pf, sv) | |||
| 980 | - | d.setArrayCount(akey, len(slice)) | |||
| 981 | - | d.segIdx[len(d.tableKey)] = len(slice) - 1 | |||
| 982 | - | d.tableTarget = reflect.ValueOf(m) | |||
| 983 | - | d.tableParentSlot = slotWriter{kind: 1, slot: sv.Index(len(slice) - 1)} | |||
| 984 | - | d.tableTargetValid = true | |||
| 985 | - | return nil | |||
| 986 | - | } | |||
| 987 | - | ||||
| 988 | - | switch v.Kind() { | |||
| 989 | - | case reflect.Slice: | |||
| 990 | - | if v.IsNil() { | |||
| 991 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |||
| 992 | - | } else if first { | |||
| 993 | - | v = v.Slice(0, 0) | |||
| 994 | - | } | |||
| 995 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |||
| 996 | - | d.storeSlot(&pf, v) | |||
| 997 | - | n := v.Len() - 1 | |||
| 998 | - | d.setArrayCount(akey, n+1) | |||
| 999 | - | d.segIdx[len(d.tableKey)] = n | |||
| 1000 | - | elem := v.Index(n) | |||
| 1001 | - | if d.unmarshalerInterface && hasUnmarshaler(elem) { | |||
| 1002 | - | d.startCapture(len(d.tableKey), expr) | |||
| 1003 | - | return nil | |||
| 1004 | - | } | |||
| 1005 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 1006 | - | v = elem | |||
| 1007 | - | case reflect.Array: | |||
| 1008 | - | cnt := d.arrayCount(akey) | |||
| 1009 | - | if first { | |||
| 1010 | - | cnt = 0 | |||
| 1011 | - | } | |||
| 1012 | - | if cnt >= v.Len() { | |||
| 1013 | - | return d.keyedError(expr, fmt.Errorf("array of size %d is too small to store this array table", v.Len())) | |||
| 1014 | - | } | |||
| 1015 | - | v.Index(cnt).Set(reflect.Zero(v.Type().Elem())) | |||
| 1016 | - | d.setArrayCount(akey, cnt+1) | |||
| 1017 | - | d.segIdx[len(d.tableKey)] = cnt | |||
| 1018 | - | elem := v.Index(cnt) | |||
| 1019 | - | if d.unmarshalerInterface && hasUnmarshaler(elem) { | |||
| 1020 | - | d.startCapture(len(d.tableKey), expr) | |||
| 1021 | - | return nil | |||
| 1022 | - | } | |||
| 1023 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 1024 | - | v = elem | |||
| 1025 | - | default: | |||
| 1026 | - | return d.keyedError(expr, fmt.Errorf("cannot store an array table in a %s", v.Kind())) | |||
| 1027 | - | } | |||
| 1028 | - | } | |||
| 1029 | - | ||||
| 1030 | - | // Settle on the concrete container for the key-values that follow. | |||
| 1031 | - | for { | |||
| 1032 | - | switch v.Kind() { | |||
| 1033 | - | case reflect.Ptr: | |||
| 1034 | - | if v.IsNil() { | |||
| 1035 | - | if !v.CanSet() { | |||
| 1036 | - | return nil | |||
| 1037 | - | } | |||
| 1038 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 1039 | - | } | |||
| 1040 | - | elem := v.Elem() | |||
| 1041 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 1042 | - | v = elem | |||
| 1043 | - | continue | |||
| 1044 | - | case reflect.Interface: | |||
| 1045 | - | if !v.IsNil() { | |||
| 1046 | - | c := v.Elem() | |||
| 1047 | - | if c.Type() == mapStringInterfaceType || c.Type() == sliceInterfaceType { | |||
| 1048 | - | v = c | |||
| 1049 | - | continue | |||
| 1050 | - | } | |||
| 1051 | - | } | |||
| 1052 | - | if !mapStringInterfaceType.AssignableTo(v.Type()) { | |||
| 1053 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Type())) | |||
| 1054 | - | } | |||
| 1055 | - | fresh := reflect.ValueOf(map[string]interface{}{}) | |||
| 1056 | - | d.storeSlot(&pf, fresh) | |||
| 1057 | - | v = fresh | |||
| 1058 | - | continue | |||
| 1059 | - | case reflect.Slice: | |||
| 1060 | - | if v.Len() == 0 { | |||
| 1061 | - | if v.IsNil() { | |||
| 1062 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |||
| 1063 | - | } | |||
| 1064 | - | v = reflect.Append(v, newContainerElem(v.Type().Elem())) | |||
| 1065 | - | d.storeSlot(&pf, v) | |||
| 1066 | - | } | |||
| 1067 | - | n := v.Len() - 1 | |||
| 1068 | - | d.segIdx[len(d.tableKey)] = n | |||
| 1069 | - | elem := v.Index(n) | |||
| 1070 | - | pf = slotWriter{kind: 1, slot: elem} | |||
| 1071 | - | v = elem | |||
| 1072 | - | continue | |||
| 1073 | - | case reflect.Map, reflect.Struct: | |||
| 1074 | - | d.tableTarget = v | |||
| 1075 | - | d.tableParentSlot = pf | |||
| 1076 | - | d.tableTargetValid = true | |||
| 1077 | - | return nil | |||
| 1078 | - | default: | |||
| 1079 | - | return d.keyedError(expr, fmt.Errorf("cannot store a table in a %s", v.Kind())) | |||
| 1080 | - | } | |||
| 1081 | - | } | |||
| 1082 | - | } | |||
| 1083 | - | ||||
| 1084 | - | // resumeCapture looks for an existing capture this table expression belongs | |||
| 1085 | - | // to. It returns true if the expression was consumed. | |||
| 1086 | - | func (d *decoder) resumeCapture(expr *unstable.Node) bool { | |||
| 1087 | - | // Iterate in reverse, so that tables attach to the latest element of | |||
| 1088 | - | // array tables. | |||
| 1089 | - | for i := len(d.captures) - 1; i >= 0; i-- { | |||
| 1090 | - | c := &d.captures[i] | |||
| 1091 | - | if len(d.tableKey) < len(c.names) { | |||
| 1092 | - | continue | |||
| 1093 | - | } | |||
| 1094 | - | if expr.Kind == unstable.ArrayTable && len(d.tableKey) == len(c.names) { | |||
| 1095 | - | // A new element of an array table is not part of the capture of | |||
| 1096 | - | // the previous element. | |||
| 1097 | - | continue | |||
| 1098 | - | } | |||
| 1099 | - | match := true | |||
| 1100 | - | for j, p := range c.names { | |||
| 1101 | - | if d.tableKey[j] != p { | |||
| 1102 | - | match = false | |||
| 1103 | - | break | |||
| 1104 | - | } | |||
| 1105 | - | } | |||
| 1106 | - | if !match { | |||
| 1107 | - | continue | |||
| 1108 | - | } | |||
| 1109 | - | d.captureIdx = i | |||
| 1110 | - | if len(d.tableKey) > len(c.names) { | |||
| 1111 | - | d.appendCaptureHeader(c, expr, len(c.names)) | |||
| 1112 | - | } | |||
| 1113 | - | return true | |||
| 1114 | - | } | |||
| 1115 | - | return false | |||
| 1116 | - | } | |||
| 1117 | - | ||||
| 1118 | - | // appendCaptureHeader writes the table header of expr in the capture buffer, | |||
| 1119 | - | // adjusted to be relative to the capture root. | |||
| 1120 | - | func (d *decoder) appendCaptureHeader(c *rawCapture, expr *unstable.Node, skip int) { | |||
| 1121 | - | c.buf = append(c.buf, '[') | |||
| 1122 | - | if expr.Kind == unstable.ArrayTable { | |||
| 1123 | - | c.buf = append(c.buf, '[') | |||
| 1124 | - | } | |||
| 1125 | - | c.buf = append(c.buf, d.rawKeySuffix(expr, skip)...) | |||
| 1126 | - | c.buf = append(c.buf, ']') | |||
| 1127 | - | if expr.Kind == unstable.ArrayTable { | |||
| 1128 | - | c.buf = append(c.buf, ']') | |||
| 1129 | - | } | |||
| 1130 | - | c.buf = append(c.buf, '\n') | |||
| 1131 | - | } | |||
| 1132 | - | ||||
| 1133 | - | // rawKeySuffix returns the raw bytes of the key of the expression, skipping | |||
| 1134 | - | // the first n parts. | |||
| 1135 | - | func (d *decoder) rawKeySuffix(expr *unstable.Node, n int) []byte { | |||
| 1136 | - | it := expr.Key() | |||
| 1137 | - | idx := 0 | |||
| 1138 | - | var start, end unstable.Range | |||
| 1139 | - | for it.Next() { | |||
| 1140 | - | if idx >= n { | |||
| 1141 | - | r := it.Node().Raw | |||
| 1142 | - | if start.Length == 0 && start.Offset == 0 && idx == n { | |||
| 1143 | - | start = r | |||
| 1144 | - | } | |||
| 1145 | - | end = r | |||
| 1146 | - | } | |||
| 1147 | - | idx++ | |||
| 1148 | - | } | |||
| 1149 | - | return d.p.Data()[start.Offset : end.Offset+end.Length] | |||
| 1150 | - | } | |||
| 1151 | - | ||||
| 1152 | - | // startCapture registers a new capture for the table at the given path | |||
| 1153 | - | // (prefix of tableKey). | |||
| 1154 | - | func (d *decoder) startCapture(pathLen int, expr *unstable.Node) { | |||
| 1155 | - | names := make([]string, pathLen) | |||
| 1156 | - | copy(names, d.tableKey[:pathLen]) | |||
| 1157 | - | indexes := make([]int, pathLen+1) | |||
| 1158 | - | copy(indexes, d.segIdx[:pathLen+1]) | |||
| 1159 | - | d.captures = append(d.captures, rawCapture{ | |||
| 1160 | - | names: names, | |||
| 1161 | - | indexes: indexes, | |||
| 1162 | - | }) | |||
| 1163 | - | d.captureIdx = len(d.captures) - 1 | |||
| 1164 | - | if pathLen < len(d.tableKey) { | |||
| 1165 | - | d.appendCaptureHeader(&d.captures[d.captureIdx], expr, pathLen) | |||
| 1166 | - | } | |||
| 1167 | - | } | |||
| 1168 | - | ||||
| 1169 | - | // startRootCapture opens a capture covering the entire document, used when the | |||
| 1170 | - | // root target itself implements the Unmarshaler interface. It is opened before | |||
| 1171 | - | // reading any expression: top-level key-values are then accumulated through the | |||
| 1172 | - | // regular capture branch, and its empty name path matches every table in | |||
| 1173 | - | // resumeCapture, so the whole document is handed to UnmarshalTOML once. The | |||
| 1174 | - | // single index slot is -1 because the root is never reached through an array | |||
| 1175 | - | // table. | |||
| 1176 | - | func (d *decoder) startRootCapture() { | |||
| 1177 | - | d.captures = append(d.captures, rawCapture{indexes: []int{-1}}) | |||
| 1178 | - | d.captureIdx = len(d.captures) - 1 | |||
| 1179 | - | } | |||
| 1180 | - | ||||
| 1181 | - | // resolveCapture walks back to the target of a capture and delivers the | |||
| 1182 | - | // accumulated raw bytes to its UnmarshalTOML implementation. | |||
| 1183 | - | func (d *decoder) resolveCapture(v reflect.Value, c *rawCapture, idx int, indexed bool) (reflect.Value, error) { | |||
| 1184 | - | if v.Kind() == reflect.Ptr { | |||
| 1185 | - | if v.Type().Implements(unmarshalerType) && idx == len(c.names) { | |||
| 1186 | - | u, _ := unmarshalerOf(v) | |||
| 1187 | - | return v, u.UnmarshalTOML(c.buf) | |||
| 1188 | - | } | |||
| 1189 | - | if v.IsNil() { | |||
| 1190 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 1191 | - | } | |||
| 1192 | - | nv, err := d.resolveCapture(v.Elem(), c, idx, indexed) | |||
| 1193 | - | if err != nil { | |||
| 1194 | - | return reflect.Value{}, err | |||
| 1195 | - | } | |||
| 1196 | - | if nv.IsValid() { | |||
| 1197 | - | v.Elem().Set(nv) | |||
| 1198 | - | } | |||
| 1199 | - | return v, nil | |||
| 1200 | - | } | |||
| 1201 | - | ||||
| 1202 | - | if !indexed && (v.Kind() == reflect.Slice || v.Kind() == reflect.Array) && c.indexes[idx] >= 0 { | |||
| 1203 | - | i := c.indexes[idx] | |||
| 1204 | - | if i >= v.Len() { | |||
| 1205 | - | return reflect.Value{}, errors.New("toml: internal error: capture index out of range") | |||
| 1206 | - | } | |||
| 1207 | - | elem := v.Index(i) | |||
| 1208 | - | nv, err := d.resolveCapture(elem, c, idx, true) | |||
| 1209 | - | if err != nil { | |||
| 1210 | - | return reflect.Value{}, err | |||
| 1211 | - | } | |||
| 1212 | - | if nv.IsValid() { | |||
| 1213 | - | elem.Set(nv) | |||
| 1214 | - | } | |||
| 1215 | - | return v, nil | |||
| 1216 | - | } | |||
| 1217 | - | ||||
| 1218 | - | if idx == len(c.names) { | |||
| 1219 | - | u, ok := unmarshalerOf(v) | |||
| 1220 | - | if !ok { | |||
| 1221 | - | return reflect.Value{}, errors.New("toml: internal error: capture target does not implement UnmarshalTOML") | |||
| 1222 | - | } | |||
| 1223 | - | return v, u.UnmarshalTOML(c.buf) | |||
| 1224 | - | } | |||
| 1225 | - | ||||
| 1226 | - | name := c.names[idx] | |||
| 1227 | - | ||||
| 1228 | - | switch v.Kind() { | |||
| 1229 | - | case reflect.Struct: | |||
| 1230 | - | plan := planForType(v.Type()) | |||
| 1231 | - | f, found := plan.lookup(name) | |||
| 1232 | - | if !found { | |||
| 1233 | - | return v, nil | |||
| 1234 | - | } | |||
| 1235 | - | fv, err := fieldByIndexAlloc(v, f.index) | |||
| 1236 | - | if err != nil { | |||
| 1237 | - | return reflect.Value{}, err | |||
| 1238 | - | } | |||
| 1239 | - | nv, err := d.resolveCapture(fv, c, idx+1, false) | |||
| 1240 | - | if err != nil { | |||
| 1241 | - | return reflect.Value{}, err | |||
| 1242 | - | } | |||
| 1243 | - | if nv.IsValid() && fv.CanSet() { | |||
| 1244 | - | fv.Set(nv) | |||
| 1245 | - | } | |||
| 1246 | - | return v, nil | |||
| 1247 | - | case reflect.Map: | |||
| 1248 | - | key, err := makeMapKey(v.Type().Key(), name) | |||
| 1249 | - | if err != nil { | |||
| 1250 | - | return reflect.Value{}, err | |||
| 1251 | - | } | |||
| 1252 | - | if v.IsNil() { | |||
| 1253 | - | v = reflect.MakeMap(v.Type()) | |||
| 1254 | - | } | |||
| 1255 | - | elem := reflect.New(v.Type().Elem()).Elem() | |||
| 1256 | - | if existing := v.MapIndex(key); existing.IsValid() { | |||
| 1257 | - | elem.Set(existing) | |||
| 1258 | - | } | |||
| 1259 | - | nv, err := d.resolveCapture(elem, c, idx+1, false) | |||
| 1260 | - | if err != nil { | |||
| 1261 | - | return reflect.Value{}, err | |||
| 1262 | - | } | |||
| 1263 | - | if nv.IsValid() { | |||
| 1264 | - | v.SetMapIndex(key, nv) | |||
| 1265 | - | } | |||
| 1266 | - | return v, nil | |||
| 1267 | - | case reflect.Interface: | |||
| 1268 | - | elem := elemOrNewMap(v) | |||
| 1269 | - | nv, err := d.resolveCapture(elem, c, idx, indexed) | |||
| 1270 | - | if err != nil || !nv.IsValid() { | |||
| 1271 | - | return reflect.Value{}, err | |||
| 1272 | - | } | |||
| 1273 | - | return nv, nil | |||
| 1274 | - | default: | |||
| 1275 | - | return reflect.Value{}, fmt.Errorf("toml: internal error: cannot resolve capture target through %s", v.Kind()) | |||
| 1276 | - | } | |||
| 1277 | - | } | |||
| 1278 | - | ||||
| 1279 | - | // captureKeyValue appends the raw bytes of a key-value expression to the | |||
| 1280 | - | // current capture. | |||
| 1281 | - | func (d *decoder) captureKeyValue(expr *unstable.Node) { | |||
| 1282 | - | c := &d.captures[d.captureIdx] | |||
| 1283 | - | c.buf = append(c.buf, d.p.Raw(expr.Raw)...) | |||
| 1284 | - | c.buf = append(c.buf, '\n') | |||
| 1285 | - | } | |||
| 1286 | - | ||||
| 1287 | - | // hasUnmarshaler reports whether v can provide an unstable.Unmarshaler, | |||
| 1288 | - | // without allocating anything. | |||
| 1289 | - | func hasUnmarshaler(v reflect.Value) bool { | |||
| 1290 | - | t := v.Type() | |||
| 1291 | - | return t.Implements(unmarshalerType) || (v.CanAddr() && reflect.PtrTo(t).Implements(unmarshalerType)) | |||
| 1292 | - | } | |||
| 1293 | - | ||||
| 1294 | - | // makeMapKey converts a TOML key into a value usable as the given map key | |||
| 1295 | - | // type. | |||
| 1296 | - | func makeMapKey(kt reflect.Type, name string) (reflect.Value, error) { | |||
| 1297 | - | switch kt.Kind() { | |||
| 1298 | - | case reflect.String: | |||
| 1299 | - | return reflect.ValueOf(name).Convert(kt), nil | |||
| 1300 | - | case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | |||
| 1301 | - | i, err := strconv.ParseInt(name, 10, 64) | |||
| 1302 | - | if err != nil { | |||
| 1303 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |||
| 1304 | - | } | |||
| 1305 | - | k := reflect.New(kt).Elem() | |||
| 1306 | - | if k.OverflowInt(i) { | |||
| 1307 | - | return reflect.Value{}, fmt.Errorf("toml: map key %q overflows %s", name, kt) | |||
| 1308 | - | } | |||
| 1309 | - | k.SetInt(i) | |||
| 1310 | - | return k, nil | |||
| 1311 | - | case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: | |||
| 1312 | - | u, err := strconv.ParseUint(name, 10, 64) | |||
| 1313 | - | if err != nil { | |||
| 1314 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |||
| 1315 | - | } | |||
| 1316 | - | k := reflect.New(kt).Elem() | |||
| 1317 | - | if k.OverflowUint(u) { | |||
| 1318 | - | return reflect.Value{}, fmt.Errorf("toml: map key %q overflows %s", name, kt) | |||
| 1319 | - | } | |||
| 1320 | - | k.SetUint(u) | |||
| 1321 | - | return k, nil | |||
| 1322 | - | case reflect.Float32, reflect.Float64: | |||
| 1323 | - | f, err := strconv.ParseFloat(name, 64) | |||
| 1324 | - | if err != nil { | |||
| 1325 | - | return reflect.Value{}, fmt.Errorf("toml: cannot parse map key %q as %s: %w", name, kt, err) | |||
| 1326 | - | } | |||
| 1327 | - | k := reflect.New(kt).Elem() | |||
| 1328 | - | k.SetFloat(f) | |||
| 1329 | - | return k, nil | |||
| 1330 | - | case reflect.Ptr: | |||
| 1331 | - | if kt.Implements(textUnmarshalerType) { | |||
| 1332 | - | k := reflect.New(kt.Elem()) | |||
| 1333 | - | err := k.Interface().(encoding.TextUnmarshaler).UnmarshalText([]byte(name)) | |||
| 1334 | - | if err != nil { | |||
| 1335 | - | return reflect.Value{}, fmt.Errorf("toml: error unmarshaling map key %q: %w", name, err) | |||
| 1336 | - | } | |||
| 1337 | - | return k, nil | |||
| 1338 | - | } | |||
| 1339 | - | default: | |||
| 1340 | - | if reflect.PtrTo(kt).Implements(textUnmarshalerType) { | |||
| 1341 | - | k := reflect.New(kt) | |||
| 1342 | - | err := k.Interface().(encoding.TextUnmarshaler).UnmarshalText([]byte(name)) | |||
| 1343 | - | if err != nil { | |||
| 1344 | - | return reflect.Value{}, fmt.Errorf("toml: error unmarshaling map key %q: %w", name, err) | |||
| 1345 | - | } | |||
| 1346 | - | return k.Elem(), nil | |||
| 1347 | - | } | |||
| 1348 | - | } | |||
| 1349 | - | return reflect.Value{}, fmt.Errorf("toml: cannot decode a key into a map with key type %s", kt) | |||
| 1350 | - | } | |||
| 1351 | - | ||||
| 1352 | - | // elemOrNewMap unwraps an interface value to descend into it. Contents that | |||
| 1353 | - | // can hold a table (generic maps and slices) are kept; anything else is | |||
| 1354 | - | // replaced by a fresh map[string]interface{}. Maps and slices are reference | |||
| 1355 | - | // types: they are returned directly, not copied. | |||
| 1356 | - | func elemOrNewMap(v reflect.Value) reflect.Value { | |||
| 1357 | - | if !v.IsNil() { | |||
| 1358 | - | concrete := v.Elem() | |||
| 1359 | - | t := concrete.Type() | |||
| 1360 | - | if t == mapStringInterfaceType || t == sliceInterfaceType { | |||
| 1361 | - | return concrete | |||
| 1362 | - | } | |||
| 1363 | - | } | |||
| 1364 | - | return reflect.ValueOf(map[string]interface{}{}) | |||
| 1365 | - | } | |||
| 1366 | - | ||||
| 1367 | - | // handleKeyValueExpression stores the value of a top-level key-value | |||
| 1368 | - | // expression, relative to the current table. | |||
| 1369 | - | func (d *decoder) handleKeyValueExpression(expr *unstable.Node, root reflect.Value) error { | |||
| 1370 | - | d.path = d.path[:0] | |||
| 1371 | - | ||||
| 1372 | - | target := root | |||
| 1373 | - | useCache := d.tableTargetValid && len(d.tableKey) > 0 | |||
| 1374 | - | if useCache { | |||
| 1375 | - | target = d.tableTarget | |||
| 1376 | - | } else { | |||
| 1377 | - | for _, name := range d.tableKey { | |||
| 1378 | - | d.path = append(d.path, pathPart{name: name}) | |||
| 1379 | - | } | |||
| 1380 | - | } | |||
| 1381 | - | ||||
| 1382 | - | it := expr.Key() | |||
| 1383 | - | for it.Next() { | |||
| 1384 | - | d.path = append(d.path, pathPart{node: it.Node()}) | |||
| 1385 | - | } | |||
| 1386 | - | ||||
| 1387 | - | nv, err := d.descend(target, d.path, 0, expr, expr.Value()) | |||
| 1388 | - | if err != nil { | |||
| 1389 | - | return d.contextualizeError(err, useCache) | |||
| 1390 | - | } | |||
| 1391 | - | if !nv.IsValid() { | |||
| 1392 | - | return nil | |||
| 1393 | - | } | |||
| 1394 | - | if useCache { | |||
| 1395 | - | // The target may have been replaced (e.g. a nil map allocated): | |||
| 1396 | - | // re-link it into its parent. | |||
| 1397 | - | if nv.Kind() == reflect.Map && nv.Pointer() != d.tableTarget.Pointer() { | |||
| 1398 | - | d.storeSlot(&d.tableParentSlot, nv) | |||
| 1399 | - | d.tableTarget = nv | |||
| 1400 | - | } | |||
| 1401 | - | } else { | |||
| 1402 | - | if root.CanSet() { | |||
| 1403 | - | root.Set(nv) | |||
| 1404 | - | } | |||
| 1405 | - | } | |||
| 1406 | - | return nil | |||
| 1407 | - | } | |||
| 1408 | - | ||||
| 1409 | - | // descend walks the given key path into v, and assigns the value at the | |||
| 1410 | - | // end. It returns the value to store back at this level. An invalid value | |||
| 1411 | - | // means nothing should be stored (e.g. unknown field). | |||
| 1412 | - | func (d *decoder) descend(v reflect.Value, path []pathPart, idx int, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |||
| 1413 | - | if idx == len(path) { | |||
| 1414 | - | return d.assignValue(v, expr, value) | |||
| 1415 | - | } | |||
| 1416 | - | ||||
| 1417 | - | if v.Kind() == reflect.Ptr { | |||
| 1418 | - | if v.IsNil() { | |||
| 1419 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 1420 | - | } | |||
| 1421 | - | nv, err := d.descend(v.Elem(), path, idx, expr, value) | |||
| 1422 | - | if err != nil || !nv.IsValid() { | |||
| 1423 | - | return reflect.Value{}, err | |||
| 1424 | - | } | |||
| 1425 | - | v.Elem().Set(nv) | |||
| 1426 | - | return v, nil | |||
| 1427 | - | } | |||
| 1428 | - | ||||
| 1429 | - | // A target implementing the unmarshaler interface consumes the value, | |||
| 1430 | - | // whatever the remaining parts of the key are. | |||
| 1431 | - | if d.unmarshalerInterface { | |||
| 1432 | - | if u, ok := unmarshalerOf(v); ok { | |||
| 1433 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |||
| 1434 | - | } | |||
| 1435 | - | } | |||
| 1436 | - | ||||
| 1437 | - | part := path[idx] | |||
| 1438 | - | ||||
| 1439 | - | switch v.Kind() { | |||
| 1440 | - | case reflect.Map: | |||
| 1441 | - | // Native fast path for the most common generic target: walk the | |||
| 1442 | - | // remaining dotted-key path with plain Go map operations and decode | |||
| 1443 | - | // the value directly, skipping the reflect.Value round-trips | |||
| 1444 | - | // (stringMapKey, MapIndex, New, SetMapIndex) entirely. | |||
| 1445 | - | if !d.unmarshalerInterface && v.Type() == mapStringInterfaceType { | |||
| 1446 | - | return d.descendStrMap(v, path, idx, value) | |||
| 1447 | - | } | |||
| 1448 | - | var name string | |||
| 1449 | - | var key reflect.Value | |||
| 1450 | - | var err error | |||
| 1451 | - | fastKey := v.Type().Key() == stringType | |||
| 1452 | - | if fastKey { | |||
| 1453 | - | name = d.partString(&part) | |||
| 1454 | - | key = d.stringMapKey(name) | |||
| 1455 | - | } else { | |||
| 1456 | - | key, err = makeMapKey(v.Type().Key(), d.partString(&part)) | |||
| 1457 | - | if err != nil { | |||
| 1458 | - | return reflect.Value{}, err | |||
| 1459 | - | } | |||
| 1460 | - | } | |||
| 1461 | - | if v.IsNil() { | |||
| 1462 | - | v = reflect.MakeMap(v.Type()) | |||
| 1463 | - | } | |||
| 1464 | - | elemType := v.Type().Elem() | |||
| 1465 | - | existing := v.MapIndex(key) | |||
| 1466 | - | var elem reflect.Value | |||
| 1467 | - | switch { | |||
| 1468 | - | case existing.IsValid(): | |||
| 1469 | - | elem = reflect.New(elemType).Elem() | |||
| 1470 | - | elem.Set(existing) | |||
| 1471 | - | case idx+1 == len(path) && elemType.Kind() == reflect.Interface: | |||
| 1472 | - | // Fast path: a fresh interface element does not need to be | |||
| 1473 | - | // materialized, the assigned value is stored directly. | |||
| 1474 | - | elem = reflect.Zero(elemType) | |||
| 1475 | - | default: | |||
| 1476 | - | elem = reflect.New(elemType).Elem() | |||
| 1477 | - | } | |||
| 1478 | - | nv, err := d.descend(elem, path, idx+1, expr, value) | |||
| 1479 | - | if err != nil { | |||
| 1480 | - | return reflect.Value{}, err | |||
| 1481 | - | } | |||
| 1482 | - | if nv.IsValid() { | |||
| 1483 | - | if fastKey { | |||
| 1484 | - | // The recursion may have overwritten the key buffer. | |||
| 1485 | - | key = d.stringMapKey(name) | |||
| 1486 | - | } | |||
| 1487 | - | v.SetMapIndex(key, nv) | |||
| 1488 | - | } | |||
| 1489 | - | return v, nil | |||
| 1490 | - | case reflect.Struct: | |||
| 1491 | - | plan := planForType(v.Type()) | |||
| 1492 | - | f, found := plan.lookupBytes(part.bytes()) | |||
| 1493 | - | if !found { | |||
| 1494 | - | if part.node != nil { | |||
| 1495 | - | d.strict.MissingField(expr) | |||
| 1496 | - | } | |||
| 1497 | - | return v, nil | |||
| 1498 | - | } | |||
| 1499 | - | fv, err := fieldByIndexAlloc(v, f.index) | |||
| 1500 | - | if err != nil { | |||
| 1501 | - | return reflect.Value{}, err | |||
| 1502 | - | } | |||
| 1503 | - | var nv reflect.Value | |||
| 1504 | - | if idx+1 == len(path) { | |||
| 1505 | - | // Leaf field: assign directly. descend's first action for a | |||
| 1506 | - | // fully-consumed path is exactly this call, so skipping the extra | |||
| 1507 | - | // frame is equivalent and avoids a call per scalar field. | |||
| 1508 | - | nv, err = d.assignValue(fv, expr, value) | |||
| 1509 | - | } else { | |||
| 1510 | - | nv, err = d.descend(fv, path, idx+1, expr, value) | |||
| 1511 | - | } | |||
| 1512 | - | if err != nil { | |||
| 1513 | - | var mm *typeMismatchError | |||
| 1514 | - | if errors.As(err, &mm) { | |||
| 1515 | - | err = &unstable.ParserError{ | |||
| 1516 | - | Highlight: mm.highlight, | |||
| 1517 | - | Message: fmt.Sprintf("cannot decode TOML %s into struct field %s.%s of type %s", | |||
| 1518 | - | mm.toml, v.Type(), f.fieldName, mm.target), | |||
| 1519 | - | } | |||
| 1520 | - | } | |||
| 1521 | - | return reflect.Value{}, err | |||
| 1522 | - | } | |||
| 1523 | - | if nv.IsValid() && fv.CanSet() { | |||
| 1524 | - | fv.Set(nv) | |||
| 1525 | - | } | |||
| 1526 | - | return v, nil | |||
| 1527 | - | case reflect.Interface: | |||
| 1528 | - | elem := elemOrNewMap(v) | |||
| 1529 | - | nv, err := d.descend(elem, path, idx, expr, value) | |||
| 1530 | - | if err != nil || !nv.IsValid() { | |||
| 1531 | - | return reflect.Value{}, err | |||
| 1532 | - | } | |||
| 1533 | - | return nv, nil | |||
| 1534 | - | case reflect.Slice: | |||
| 1535 | - | if v.Len() == 0 { | |||
| 1536 | - | if v.IsNil() { | |||
| 1537 | - | v = reflect.MakeSlice(v.Type(), 0, 4) | |||
| 1538 | - | } | |||
| 1539 | - | v = reflect.Append(v, reflect.New(v.Type().Elem()).Elem()) | |||
| 1540 | - | } | |||
| 1541 | - | elem := v.Index(v.Len() - 1) | |||
| 1542 | - | nv, err := d.descend(elem, path, idx, expr, value) | |||
| 1543 | - | if err != nil { | |||
| 1544 | - | return reflect.Value{}, err | |||
| 1545 | - | } | |||
| 1546 | - | if nv.IsValid() { | |||
| 1547 | - | elem.Set(nv) | |||
| 1548 | - | } | |||
| 1549 | - | return v, nil | |||
| 1550 | - | case reflect.Array: | |||
| 1551 | - | names := make([]string, idx) | |||
| 1552 | - | for i := range names { | |||
| 1553 | - | names[i] = path[i].str() | |||
| 1554 | - | } | |||
| 1555 | - | cnt := d.arrayCount(d.joinPath(names)) | |||
| 1556 | - | if cnt == 0 { | |||
| 1557 | - | cnt = 1 | |||
| 1558 | - | } | |||
| 1559 | - | elemIdx := cnt - 1 | |||
| 1560 | - | if elemIdx >= v.Len() { | |||
| 1561 | - | return reflect.Value{}, unstable.NewParserError(keyHighlight(d.p.Data(), part.node), | |||
| 1562 | - | "cannot reach element %d of array of size %d", elemIdx, v.Len()) | |||
| 1563 | - | } | |||
| 1564 | - | elem := v.Index(elemIdx) | |||
| 1565 | - | nv, err := d.descend(elem, path, idx, expr, value) | |||
| 1566 | - | if err != nil { | |||
| 1567 | - | return reflect.Value{}, err | |||
| 1568 | - | } | |||
| 1569 | - | if nv.IsValid() { | |||
| 1570 | - | elem.Set(nv) | |||
| 1571 | - | } | |||
| 1572 | - | return v, nil | |||
| 1573 | - | default: | |||
| 1574 | - | return reflect.Value{}, d.typeMismatchError("table", v.Type(), keyHighlight(d.p.Data(), part.node)) | |||
| 1575 | - | } | |||
| 1576 | - | } | |||
| 1577 | - | ||||
| 1578 | - | // descendStrMap assigns into a native map[string]interface{} target, following | |||
| 1579 | - | // the remaining dotted-key parts with plain Go map operations and decoding the | |||
| 1580 | - | // value with decodeAny. It returns the map to store back at this level: a new | |||
| 1581 | - | // map when v was nil, otherwise v unchanged, since maps are reference types and | |||
| 1582 | - | // are mutated in place. | |||
| 1583 | - | func (d *decoder) descendStrMap(v reflect.Value, path []pathPart, idx int, value *unstable.Node) (reflect.Value, error) { | |||
| 1584 | - | var m map[string]interface{} | |||
| 1585 | - | if v.IsNil() { | |||
| 1586 | - | m = make(map[string]interface{}) | |||
| 1587 | - | v = reflect.ValueOf(m) | |||
| 1588 | - | } else { | |||
| 1589 | - | m = v.Interface().(map[string]interface{}) | |||
| 1590 | - | } | |||
| 1591 | - | ||||
| 1592 | - | // Walk intermediate parts, creating or reusing nested generic maps. A | |||
| 1593 | - | // non-map value at an intermediate key can only occur in a document the | |||
| 1594 | - | // seen-tracker has already rejected; replacing it mirrors the reflect | |||
| 1595 | - | // path (elemOrNewMap). | |||
| 1596 | - | for ; idx < len(path)-1; idx++ { | |||
| 1597 | - | name := d.partString(&path[idx]) | |||
| 1598 | - | child, _ := m[name].(map[string]interface{}) | |||
| 1599 | - | if child == nil { | |||
| 1600 | - | child = make(map[string]interface{}) | |||
| 1601 | - | m[name] = child | |||
| 1602 | - | } | |||
| 1603 | - | m = child | |||
| 1604 | - | } | |||
| 1605 | - | ||||
| 1606 | - | av, err := d.decodeAny(value) | |||
| 1607 | - | if err != nil { | |||
| 1608 | - | return reflect.Value{}, err | |||
| 1609 | - | } | |||
| 1610 | - | m[d.partString(&path[idx])] = av | |||
| 1611 | - | return v, nil | |||
| 1612 | - | } | |||
| 1613 | - | ||||
| 1614 | - | // keyHighlight returns a highlight for the given key part node, falling back | |||
| 1615 | - | // to the start of the document. | |||
| 1616 | - | func keyHighlight(doc []byte, node *unstable.Node) []byte { | |||
| 1617 | - | if node == nil { | |||
| 1618 | - | return doc[0:0] | |||
| 1619 | - | } | |||
| 1620 | - | return doc[node.Raw.Offset : node.Raw.Offset+node.Raw.Length] | |||
| 1621 | - | } | |||
| 1622 | - | ||||
| 1623 | - | // rawValue returns the raw bytes of the value of a key-value expression. | |||
| 1624 | - | func (d *decoder) rawValue(expr *unstable.Node, value *unstable.Node) []byte { | |||
| 1625 | - | if value.Kind != unstable.InlineTable && value.Kind != unstable.Array { | |||
| 1626 | - | return d.p.Raw(value.Raw) | |||
| 1627 | - | } | |||
| 1628 | - | if expr == nil || expr.Kind != unstable.KeyValue { | |||
| 1629 | - | // Inline container nested in another container: best effort. | |||
| 1630 | - | return d.p.Raw(value.Raw) | |||
| 1631 | - | } | |||
| 1632 | - | // Reconstruct the span of the value: it starts after the equal sign | |||
| 1633 | - | // following the last part of the key, and stops at the end of the | |||
| 1634 | - | // expression. | |||
| 1635 | - | var last unstable.Range | |||
| 1636 | - | it := expr.Key() | |||
| 1637 | - | for it.Next() { | |||
| 1638 | - | last = it.Node().Raw | |||
| 1639 | - | } | |||
| 1640 | - | doc := d.p.Data() | |||
| 1641 | - | i := int(last.Offset + last.Length) | |||
| 1642 | - | for i < len(doc) && (doc[i] == ' ' || doc[i] == '\t') { | |||
| 1643 | - | i++ | |||
| 1644 | - | } | |||
| 1645 | - | i++ // equal sign | |||
| 1646 | - | for i < len(doc) && (doc[i] == ' ' || doc[i] == '\t') { | |||
| 1647 | - | i++ | |||
| 1648 | - | } | |||
| 1649 | - | end := int(expr.Raw.Offset + expr.Raw.Length) | |||
| 1650 | - | return doc[i:end] | |||
| 1651 | - | } | |||
| 1652 | - | ||||
| 1653 | - | // unmarshalerOf returns the unstable.Unmarshaler implementation of v, if | |||
| 1654 | - | // any. It allocates intermediate pointers as needed. | |||
| 1655 | - | func unmarshalerOf(v reflect.Value) (unstable.Unmarshaler, bool) { | |||
| 1656 | - | t := v.Type() | |||
| 1657 | - | if t.Implements(unmarshalerType) { | |||
| 1658 | - | if v.Kind() == reflect.Ptr && v.IsNil() { | |||
| 1659 | - | v.Set(reflect.New(t.Elem())) | |||
| 1660 | - | } | |||
| 1661 | - | return v.Interface().(unstable.Unmarshaler), true | |||
| 1662 | - | } | |||
| 1663 | - | if v.CanAddr() && reflect.PtrTo(t).Implements(unmarshalerType) { | |||
| 1664 | - | return v.Addr().Interface().(unstable.Unmarshaler), true | |||
| 1665 | - | } | |||
| 1666 | - | return nil, false | |||
| 1667 | - | } | |||
| 1668 | - | ||||
| 1669 | - | var unmarshalerType = reflect.TypeOf(new(unstable.Unmarshaler)).Elem() | |||
| 1670 | - | ||||
| 1671 | - | // assignValue stores the TOML value carried by the node into v. | |||
| 1672 | - | func (d *decoder) assignValue(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |||
| 1673 | - | if v.Kind() == reflect.Ptr { | |||
| 1674 | - | if d.unmarshalerInterface { | |||
| 1675 | - | if u, ok := unmarshalerOf(v); ok { | |||
| 1676 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |||
| 1677 | - | } | |||
| 1678 | - | } | |||
| 1679 | - | if v.IsNil() { | |||
| 1680 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 1681 | - | } | |||
| 1682 | - | nv, err := d.assignValue(v.Elem(), expr, value) | |||
| 1683 | - | if err != nil || !nv.IsValid() { | |||
| 1684 | - | return reflect.Value{}, err | |||
| 1685 | - | } | |||
| 1686 | - | v.Elem().Set(nv) | |||
| 1687 | - | return v, nil | |||
| 1688 | - | } | |||
| 1689 | - | ||||
| 1690 | - | if d.unmarshalerInterface { | |||
| 1691 | - | if u, ok := unmarshalerOf(v); ok { | |||
| 1692 | - | return v, u.UnmarshalTOML(d.rawValue(expr, value)) | |||
| 1693 | - | } | |||
| 1694 | - | } | |||
| 1695 | - | ||||
| 1696 | - | switch value.Kind { | |||
| 1697 | - | case unstable.String: | |||
| 1698 | - | return d.assignString(v, value) | |||
| 1699 | - | case unstable.Integer: | |||
| 1700 | - | return d.assignInteger(v, value) | |||
| 1701 | - | case unstable.Float: | |||
| 1702 | - | return d.assignFloat(v, value) | |||
| 1703 | - | case unstable.Bool: | |||
| 1704 | - | return d.assignBool(v, value) | |||
| 1705 | - | case unstable.DateTime: | |||
| 1706 | - | return d.assignDateTime(v, value) | |||
| 1707 | - | case unstable.LocalDateTime: | |||
| 1708 | - | return d.assignLocalDateTime(v, value) | |||
| 1709 | - | case unstable.LocalDate: | |||
| 1710 | - | return d.assignLocalDate(v, value) | |||
| 1711 | - | case unstable.LocalTime: | |||
| 1712 | - | return d.assignLocalTime(v, value) | |||
| 1713 | - | case unstable.Array: | |||
| 1714 | - | return d.assignArray(v, expr, value) | |||
| 1715 | - | case unstable.InlineTable: | |||
| 1716 | - | return d.assignInlineTable(v, expr, value) | |||
| 1717 | - | default: | |||
| 1718 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "unsupported value kind %s", value.Kind) | |||
| 1719 | - | } | |||
| 1720 | - | } | |||
| 1721 | - | ||||
| 1722 | - | func (d *decoder) assignString(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1723 | - | switch v.Kind() { | |||
| 1724 | - | case reflect.String: | |||
| 1725 | - | v.SetString(string(value.Data)) | |||
| 1726 | - | return v, nil | |||
| 1727 | - | case reflect.Interface: | |||
| 1728 | - | return boxInto(v, reflect.ValueOf(string(value.Data))) | |||
| 1729 | - | default: | |||
| 1730 | - | } | |||
| 1731 | - | if v.CanAddr() && v.Addr().Type().Implements(textUnmarshalerType) { | |||
| 1732 | - | err := v.Addr().Interface().(encoding.TextUnmarshaler).UnmarshalText(value.Data) | |||
| 1733 | - | if err != nil { | |||
| 1734 | - | return reflect.Value{}, unstable.NewParserError(d.p.Raw(value.Raw), "%s", err) | |||
| 1735 | - | } | |||
| 1736 | - | return v, nil | |||
| 1737 | - | } | |||
| 1738 | - | return reflect.Value{}, d.typeMismatchError("string", v.Type(), d.p.Raw(value.Raw)) | |||
| 1739 | - | } | |||
| 1740 | - | ||||
| 1741 | - | func (d *decoder) assignInteger(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1742 | - | // Integer values targeting a float field are parsed as floats: they can | |||
| 1743 | - | // represent (approximately) numbers beyond the int64 range. | |||
| 1744 | - | if k := v.Kind(); k == reflect.Float32 || k == reflect.Float64 { | |||
| 1745 | - | return d.assignFloat(v, value) | |||
| 1746 | - | } | |||
| 1747 | - | ||||
| 1748 | - | i, err := parseInteger(value.Data) | |||
| 1749 | - | if err != nil { | |||
| 1750 | - | return reflect.Value{}, err | |||
| 1751 | - | } | |||
| 1752 | - | ||||
| 1753 | - | switch v.Kind() { | |||
| 1754 | - | case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | |||
| 1755 | - | if v.OverflowInt(i) { | |||
| 1756 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "integer value %d cannot be stored in %s", i, v.Type()) | |||
| 1757 | - | } | |||
| 1758 | - | v.SetInt(i) | |||
| 1759 | - | return v, nil | |||
| 1760 | - | case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: | |||
| 1761 | - | if i < 0 { | |||
| 1762 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "negative integer value %d cannot be stored in %s", i, v.Type()) | |||
| 1763 | - | } | |||
| 1764 | - | if v.OverflowUint(uint64(i)) { | |||
| 1765 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "integer value %d cannot be stored in %s", i, v.Type()) | |||
| 1766 | - | } | |||
| 1767 | - | v.SetUint(uint64(i)) | |||
| 1768 | - | return v, nil | |||
| 1769 | - | case reflect.Interface: | |||
| 1770 | - | return boxInto(v, reflect.ValueOf(i)) | |||
| 1771 | - | default: | |||
| 1772 | - | } | |||
| 1773 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |||
| 1774 | - | return v, err | |||
| 1775 | - | } | |||
| 1776 | - | return reflect.Value{}, d.typeMismatchError("integer", v.Type(), d.p.Raw(value.Raw)) | |||
| 1777 | - | } | |||
| 1778 | - | ||||
| 1779 | - | // tryTextUnmarshaler attempts to deliver the raw text of a value to a target | |||
| 1780 | - | // implementing encoding.TextUnmarshaler. | |||
| 1781 | - | func tryTextUnmarshaler(v reflect.Value, text []byte) (bool, error) { | |||
| 1782 | - | if v.CanAddr() && v.Addr().Type().Implements(textUnmarshalerType) { | |||
| 1783 | - | return true, v.Addr().Interface().(encoding.TextUnmarshaler).UnmarshalText(text) | |||
| 1784 | - | } | |||
| 1785 | - | return false, nil | |||
| 1786 | - | } | |||
| 1787 | - | ||||
| 1788 | - | func (d *decoder) assignFloat(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1789 | - | f, err := parseFloat(value.Data) | |||
| 1790 | - | if err != nil { | |||
| 1791 | - | return reflect.Value{}, err | |||
| 1792 | - | } | |||
| 1793 | - | ||||
| 1794 | - | switch v.Kind() { | |||
| 1795 | - | case reflect.Float64: | |||
| 1796 | - | v.SetFloat(f) | |||
| 1797 | - | return v, nil | |||
| 1798 | - | case reflect.Float32: | |||
| 1799 | - | if !math.IsInf(f, 0) && math.Abs(f) > math.MaxFloat32 { | |||
| 1800 | - | return reflect.Value{}, unstable.NewParserError(value.Data, "float value %f cannot be stored in float32", f) | |||
| 1801 | - | } | |||
| 1802 | - | v.SetFloat(f) | |||
| 1803 | - | return v, nil | |||
| 1804 | - | case reflect.Interface: | |||
| 1805 | - | return boxInto(v, reflect.ValueOf(f)) | |||
| 1806 | - | default: | |||
| 1807 | - | } | |||
| 1808 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |||
| 1809 | - | return v, err | |||
| 1810 | - | } | |||
| 1811 | - | return reflect.Value{}, d.typeMismatchError("float", v.Type(), d.p.Raw(value.Raw)) | |||
| 1812 | - | } | |||
| 1813 | - | ||||
| 1814 | - | func (d *decoder) assignBool(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1815 | - | b := value.Data[0] == 't' | |||
| 1816 | - | ||||
| 1817 | - | switch v.Kind() { | |||
| 1818 | - | case reflect.Bool: | |||
| 1819 | - | v.SetBool(b) | |||
| 1820 | - | return v, nil | |||
| 1821 | - | case reflect.Interface: | |||
| 1822 | - | return boxInto(v, reflect.ValueOf(b)) | |||
| 1823 | - | default: | |||
| 1824 | - | } | |||
| 1825 | - | if ok, err := tryTextUnmarshaler(v, value.Data); ok { | |||
| 1826 | - | return v, err | |||
| 1827 | - | } | |||
| 1828 | - | return reflect.Value{}, d.typeMismatchError("boolean", v.Type(), d.p.Raw(value.Raw)) | |||
| 1829 | - | } | |||
| 1830 | - | ||||
| 1831 | - | func (d *decoder) assignDateTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1832 | - | t, err := parseDateTime(value.Data) | |||
| 1833 | - | if err != nil { | |||
| 1834 | - | return reflect.Value{}, err | |||
| 1835 | - | } | |||
| 1836 | - | ||||
| 1837 | - | if v.Type() == timeType { | |||
| 1838 | - | setConcrete(v, t) | |||
| 1839 | - | return v, nil | |||
| 1840 | - | } | |||
| 1841 | - | if v.Kind() == reflect.Interface { | |||
| 1842 | - | return boxInto(v, reflect.ValueOf(t)) | |||
| 1843 | - | } | |||
| 1844 | - | return reflect.Value{}, d.typeMismatchError("datetime", v.Type(), d.p.Raw(value.Raw)) | |||
| 1845 | - | } | |||
| 1846 | - | ||||
| 1847 | - | // setConcrete assigns x to v, which must be a settable value of x's concrete | |||
| 1848 | - | // type. Writing through the address avoids the heap allocation that | |||
| 1849 | - | // v.Set(reflect.ValueOf(x)) incurs from boxing x into an interface. Settable | |||
| 1850 | - | // implies addressable: the decoder assigns to struct fields, slice elements, | |||
| 1851 | - | // and reflect.New-allocated temporaries (map elements are decoded into such | |||
| 1852 | - | // temporaries), all of which are addressable. | |||
| 1853 | - | func setConcrete[T any](v reflect.Value, x T) { | |||
| 1854 | - | *(v.Addr().Interface().(*T)) = x | |||
| 1855 | - | } | |||
| 1856 | - | ||||
| 1857 | - | func (d *decoder) assignLocalDateTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1858 | - | dt, rest, err := parseLocalDateTime(value.Data) | |||
| 1859 | - | if err != nil { | |||
| 1860 | - | return reflect.Value{}, err | |||
| 1861 | - | } | |||
| 1862 | - | if len(rest) > 0 { | |||
| 1863 | - | return reflect.Value{}, unstable.NewParserError(rest, "extra characters at the end of a local date time") | |||
| 1864 | - | } | |||
| 1865 | - | ||||
| 1866 | - | switch v.Type() { | |||
| 1867 | - | case localDateTimeType: | |||
| 1868 | - | setConcrete(v, dt) | |||
| 1869 | - | return v, nil | |||
| 1870 | - | case timeType: | |||
| 1871 | - | setConcrete(v, dt.AsTime(time.Local)) | |||
| 1872 | - | return v, nil | |||
| 1873 | - | } | |||
| 1874 | - | if v.Kind() == reflect.Interface { | |||
| 1875 | - | return boxInto(v, reflect.ValueOf(dt)) | |||
| 1876 | - | } | |||
| 1877 | - | return reflect.Value{}, d.typeMismatchError("local datetime", v.Type(), d.p.Raw(value.Raw)) | |||
| 1878 | - | } | |||
| 1879 | - | ||||
| 1880 | - | func (d *decoder) assignLocalDate(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1881 | - | date, err := parseLocalDate(value.Data) | |||
| 1882 | - | if err != nil { | |||
| 1883 | - | return reflect.Value{}, err | |||
| 1884 | - | } | |||
| 1885 | - | ||||
| 1886 | - | switch v.Type() { | |||
| 1887 | - | case localDateType: | |||
| 1888 | - | setConcrete(v, date) | |||
| 1889 | - | return v, nil | |||
| 1890 | - | case timeType: | |||
| 1891 | - | setConcrete(v, date.AsTime(time.Local)) | |||
| 1892 | - | return v, nil | |||
| 1893 | - | } | |||
| 1894 | - | if v.Kind() == reflect.Interface { | |||
| 1895 | - | return boxInto(v, reflect.ValueOf(date)) | |||
| 1896 | - | } | |||
| 1897 | - | return reflect.Value{}, d.typeMismatchError("local date", v.Type(), d.p.Raw(value.Raw)) | |||
| 1898 | - | } | |||
| 1899 | - | ||||
| 1900 | - | func (d *decoder) assignLocalTime(v reflect.Value, value *unstable.Node) (reflect.Value, error) { | |||
| 1901 | - | t, rest, err := parseLocalTime(value.Data) | |||
| 1902 | - | if err != nil { | |||
| 1903 | - | return reflect.Value{}, err | |||
| 1904 | - | } | |||
| 1905 | - | if len(rest) > 0 { | |||
| 1906 | - | return reflect.Value{}, unstable.NewParserError(rest, "extra characters at the end of a local time") | |||
| 1907 | - | } | |||
| 1908 | - | ||||
| 1909 | - | switch v.Type() { | |||
| 1910 | - | case localTimeType: | |||
| 1911 | - | setConcrete(v, t) | |||
| 1912 | - | return v, nil | |||
| 1913 | - | case timeType: | |||
| 1914 | - | setConcrete(v, time.Date(0, 1, 1, t.Hour, t.Minute, t.Second, t.Nanosecond, time.Local)) | |||
| 1915 | - | return v, nil | |||
| 1916 | - | } | |||
| 1917 | - | if v.Kind() == reflect.Interface { | |||
| 1918 | - | return boxInto(v, reflect.ValueOf(t)) | |||
| 1919 | - | } | |||
| 1920 | - | return reflect.Value{}, d.typeMismatchError("local time", v.Type(), d.p.Raw(value.Raw)) | |||
| 1921 | - | } | |||
| 1922 | - | ||||
| 1923 | - | func (d *decoder) assignArray(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |||
| 1924 | - | // Count the elements to allocate the target in one go. | |||
| 1925 | - | count := 0 | |||
| 1926 | - | cit := value.Children() | |||
| 1927 | - | for cit.Next() { | |||
| 1928 | - | if cit.Node().Kind != unstable.Comment { | |||
| 1929 | - | count++ | |||
| 1930 | - | } | |||
| 1931 | - | } | |||
| 1932 | - | ||||
| 1933 | - | switch v.Kind() { | |||
| 1934 | - | case reflect.Slice: | |||
| 1935 | - | // Allocate the backing array once at its final length and assign each | |||
| 1936 | - | // element in place. This avoids a reflect.New allocation per element | |||
| 1937 | - | // and the repeated growth checks of reflect.Append. | |||
| 1938 | - | slice := reflect.MakeSlice(v.Type(), count, count) | |||
| 1939 | - | i := 0 | |||
| 1940 | - | it := value.Children() | |||
| 1941 | - | for it.Next() { | |||
| 1942 | - | n := it.Node() | |||
| 1943 | - | if n.Kind == unstable.Comment { | |||
| 1944 | - | continue | |||
| 1945 | - | } | |||
| 1946 | - | elem := slice.Index(i) | |||
| 1947 | - | nv, err := d.assignValue(elem, nil, n) | |||
| 1948 | - | if err != nil { | |||
| 1949 | - | return reflect.Value{}, err | |||
| 1950 | - | } | |||
| 1951 | - | if nv.IsValid() { | |||
| 1952 | - | elem.Set(nv) | |||
| 1953 | - | } | |||
| 1954 | - | i++ | |||
| 1955 | - | } | |||
| 1956 | - | return slice, nil | |||
| 1957 | - | case reflect.Array: | |||
| 1958 | - | it := value.Children() | |||
| 1959 | - | i := 0 | |||
| 1960 | - | for it.Next() { | |||
| 1961 | - | n := it.Node() | |||
| 1962 | - | if n.Kind == unstable.Comment { | |||
| 1963 | - | continue | |||
| 1964 | - | } | |||
| 1965 | - | if i >= v.Len() { | |||
| 1966 | - | // Extra elements are dropped when the target array is too | |||
| 1967 | - | // small. | |||
| 1968 | - | break | |||
| 1969 | - | } | |||
| 1970 | - | elem := v.Index(i) | |||
| 1971 | - | nv, err := d.assignValue(elem, nil, n) | |||
| 1972 | - | if err != nil { | |||
| 1973 | - | return reflect.Value{}, err | |||
| 1974 | - | } | |||
| 1975 | - | elem.Set(nv) | |||
| 1976 | - | i++ | |||
| 1977 | - | } | |||
| 1978 | - | return v, nil | |||
| 1979 | - | case reflect.Interface: | |||
| 1980 | - | // Build the []interface{} natively: each element is decoded straight | |||
| 1981 | - | // into a Go value with no intermediate addressable reflect.Value and | |||
| 1982 | - | // no reflect round-trip, and nested arrays recurse the same way. | |||
| 1983 | - | slice := make([]interface{}, 0, count) | |||
| 1984 | - | it := value.Children() | |||
| 1985 | - | for it.Next() { | |||
| 1986 | - | n := it.Node() | |||
| 1987 | - | if n.Kind == unstable.Comment { | |||
| 1988 | - | continue | |||
| 1989 | - | } | |||
| 1990 | - | ev, err := d.decodeAny(n) | |||
| 1991 | - | if err != nil { | |||
| 1992 | - | return reflect.Value{}, err | |||
| 1993 | - | } | |||
| 1994 | - | slice = append(slice, ev) | |||
| 1995 | - | } | |||
| 1996 | - | return boxInto(v, reflect.ValueOf(slice)) | |||
| 1997 | - | default: | |||
| 1998 | - | } | |||
| 1999 | - | return reflect.Value{}, d.typeMismatchError("array", v.Type(), d.rawValue(expr, value)) | |||
| 2000 | - | } | |||
| 2001 | - | ||||
| 2002 | - | // decodeAny decodes a value node into a native Go value (the representation | |||
| 2003 | - | // used for interface{} targets), without going through reflect. Scalars and | |||
| 2004 | - | // arrays are handled directly; inline tables still defer to the reflect-based | |||
| 2005 | - | // path so that their dotted-key merge semantics remain identical. | |||
| 2006 | - | func (d *decoder) decodeAny(n *unstable.Node) (interface{}, error) { | |||
| 2007 | - | switch n.Kind { | |||
| 2008 | - | case unstable.String: | |||
| 2009 | - | return string(n.Data), nil | |||
| 2010 | - | case unstable.Integer: | |||
| 2011 | - | i, err := parseInteger(n.Data) | |||
| 2012 | - | return i, err | |||
| 2013 | - | case unstable.Float: | |||
| 2014 | - | f, err := parseFloat(n.Data) | |||
| 2015 | - | return f, err | |||
| 2016 | - | case unstable.Bool: | |||
| 2017 | - | return n.Data[0] == 't', nil | |||
| 2018 | - | case unstable.Array: | |||
| 2019 | - | count := 0 | |||
| 2020 | - | cit := n.Children() | |||
| 2021 | - | for cit.Next() { | |||
| 2022 | - | if cit.Node().Kind != unstable.Comment { | |||
| 2023 | - | count++ | |||
| 2024 | - | } | |||
| 2025 | - | } | |||
| 2026 | - | slice := make([]interface{}, 0, count) | |||
| 2027 | - | it := n.Children() | |||
| 2028 | - | for it.Next() { | |||
| 2029 | - | c := it.Node() | |||
| 2030 | - | if c.Kind == unstable.Comment { | |||
| 2031 | - | continue | |||
| 2032 | - | } | |||
| 2033 | - | ev, err := d.decodeAny(c) | |||
| 2034 | - | if err != nil { | |||
| 2035 | - | return nil, err | |||
| 2036 | - | } | |||
| 2037 | - | slice = append(slice, ev) | |||
| 2038 | - | } | |||
| 2039 | - | return slice, nil | |||
| 2040 | - | case unstable.InlineTable: | |||
| 2041 | - | // Build the map natively: navigate each (possibly dotted) key with | |||
| 2042 | - | // plain Go map operations and decode each value with decodeAny. The | |||
| 2043 | - | // seen-tracker has already rejected duplicate or conflicting keys, so | |||
| 2044 | - | // intermediate parts can be created/merged without revalidation. | |||
| 2045 | - | count := 0 | |||
| 2046 | - | cit := n.Children() | |||
| 2047 | - | for cit.Next() { | |||
| 2048 | - | count++ | |||
| 2049 | - | } | |||
| 2050 | - | m := make(map[string]interface{}, count) | |||
| 2051 | - | it := n.Children() | |||
| 2052 | - | for it.Next() { | |||
| 2053 | - | kv := it.Node() | |||
| 2054 | - | if err := d.setAnyKey(m, kv.Key(), kv.Value()); err != nil { | |||
| 2055 | - | return nil, err | |||
| 2056 | - | } | |||
| 2057 | - | } | |||
| 2058 | - | return m, nil | |||
| 2059 | - | case unstable.DateTime: | |||
| 2060 | - | t, err := parseDateTime(n.Data) | |||
| 2061 | - | return t, err | |||
| 2062 | - | case unstable.LocalDateTime: | |||
| 2063 | - | dt, rest, err := parseLocalDateTime(n.Data) | |||
| 2064 | - | if err != nil { | |||
| 2065 | - | return nil, err | |||
| 2066 | - | } | |||
| 2067 | - | if len(rest) > 0 { | |||
| 2068 | - | return nil, unstable.NewParserError(rest, "extra characters at the end of a local date time") | |||
| 2069 | - | } | |||
| 2070 | - | return dt, nil | |||
| 2071 | - | case unstable.LocalDate: | |||
| 2072 | - | date, err := parseLocalDate(n.Data) | |||
| 2073 | - | return date, err | |||
| 2074 | - | case unstable.LocalTime: | |||
| 2075 | - | t, rest, err := parseLocalTime(n.Data) | |||
| 2076 | - | if err != nil { | |||
| 2077 | - | return nil, err | |||
| 2078 | - | } | |||
| 2079 | - | if len(rest) > 0 { | |||
| 2080 | - | return nil, unstable.NewParserError(rest, "extra characters at the end of a local time") | |||
| 2081 | - | } | |||
| 2082 | - | return t, nil | |||
| 2083 | - | default: | |||
| 2084 | - | return nil, unstable.NewParserError(n.Data, "unsupported value kind %s", n.Kind) | |||
| 2085 | - | } | |||
| 2086 | - | } | |||
| 2087 | - | ||||
| 2088 | - | func (d *decoder) assignInlineTable(v reflect.Value, expr *unstable.Node, value *unstable.Node) (reflect.Value, error) { | |||
| 2089 | - | switch v.Kind() { | |||
| 2090 | - | case reflect.Map: | |||
| 2091 | - | // Inline tables are self-contained: they fully replace the target. | |||
| 2092 | - | v = reflect.MakeMap(v.Type()) | |||
| 2093 | - | case reflect.Struct: | |||
| 2094 | - | // fields are set in place | |||
| 2095 | - | case reflect.Interface: | |||
| 2096 | - | elem := reflect.ValueOf(map[string]interface{}{}) | |||
| 2097 | - | nv, err := d.assignInlineTable(elem, expr, value) | |||
| 2098 | - | if err != nil { | |||
| 2099 | - | return reflect.Value{}, err | |||
| 2100 | - | } | |||
| 2101 | - | return boxInto(v, nv) | |||
| 2102 | - | default: | |||
| 2103 | - | return reflect.Value{}, d.typeMismatchError("inline table", v.Type(), d.rawValue(expr, value)) | |||
| 2104 | - | } | |||
| 2105 | - | ||||
| 2106 | - | it := value.Children() | |||
| 2107 | - | for it.Next() { | |||
| 2108 | - | kv := it.Node() | |||
| 2109 | - | // Build the path from the key of this key-value. Keys of inline | |||
| 2110 | - | // tables rarely have more than a few parts. | |||
| 2111 | - | var pathBuf [4]pathPart | |||
| 2112 | - | path := pathBuf[:0] | |||
| 2113 | - | kit := kv.Key() | |||
| 2114 | - | for kit.Next() { | |||
| 2115 | - | path = append(path, pathPart{node: kit.Node()}) | |||
| 2116 | - | } | |||
| 2117 | - | nv, err := d.descend(v, path, 0, kv, kv.Value()) | |||
| 2118 | - | if err != nil { | |||
| 2119 | - | return reflect.Value{}, err | |||
| 2120 | - | } | |||
| 2121 | - | if nv.IsValid() { | |||
| 2122 | - | v = nv | |||
| 2123 | - | } | |||
| 2124 | - | } | |||
| 2125 | - | return v, nil | |||
| 2126 | - | } | |||
| 2127 | - | ||||
| 2128 | - | // boxInto returns the value to store in place of the interface value v. The | |||
| 2129 | - | // caller stores the result in the slot v was found in, which performs the | |||
| 2130 | - | // interface conversion, so the concrete value can be returned as-is. | |||
| 2131 | - | func boxInto(v reflect.Value, c reflect.Value) (reflect.Value, error) { | |||
| 2132 | - | if !c.Type().AssignableTo(v.Type()) { | |||
| 2133 | - | return reflect.Value{}, fmt.Errorf("toml: cannot store %s into %s", c.Type(), v.Type()) | |||
| 2134 | - | } | |||
| 2135 | - | return c, nil | |||
| 2136 | - | } | |||
| 2137 | - | ||||
| 2138 | - | var ( | |||
| 2139 | - | interfaceType = reflect.TypeOf(new(interface{})).Elem() | |||
| 2140 | - | localDateType = reflect.TypeOf(LocalDate{}) | |||
| 2141 | - | localTimeType = reflect.TypeOf(LocalTime{}) | |||
| 2142 | - | localDateTimeType = reflect.TypeOf(LocalDateTime{}) | |||
| 2143 | - | ) | |||
| 2144 | - | ||||
| 2145 | - | // structPlan caches the mapping between TOML keys and the fields of a struct | |||
| 2146 | - | // type. byFold, keyed by the lowercased name, resolves any key on its own when | |||
| 2147 | - | // no two fields fold to the same name (the overwhelmingly common case, marked | |||
| 2148 | - | // by hasCollision == false): TOML keys are usually lowercase and never match | |||
| 2149 | - | // the exact (capitalized) Go field names, so the byName probe was always a | |||
| 2150 | - | // wasted lookup. byName (the exact names) is only consulted, first, when | |||
| 2151 | - | // fields do collide under folding, to preserve the exact-match-wins tiebreak. | |||
| 2152 | - | type structPlan struct { | |||
| 2153 | - | byName map[string]structField | |||
| 2154 | - | byFold map[string]structField | |||
| 2155 | - | hasCollision bool | |||
| 2156 | - | } | |||
| 2157 | - | ||||
| 2158 | - | type structField struct { | |||
| 2159 | - | index []int | |||
| 2160 | - | fieldName string | |||
| 2161 | - | } | |||
| 2162 | - | ||||
| 2163 | - | // foldBufSize bounds the stack buffer used to lowercase keys without | |||
| 2164 | - | // allocating. Keys longer than this (extremely rare) take the strings.ToLower | |||
| 2165 | - | // fallback. | |||
| 2166 | - | const foldBufSize = 68 | |||
| 2167 | - | ||||
| 2168 | - | // lookup and lookupBytes keep the hot path to a single inlinable byFold lookup. | |||
| 2169 | - | // byFold is indexed by both the exact field/tag names and their lowercased | |||
| 2170 | - | // forms, so that lookup resolves the two common cases — a lowercase key, or a | |||
| 2171 | - | // key matching the field's own casing — directly. byName is consulted first | |||
| 2172 | - | // only for types whose fields collide under case-folding, to preserve the | |||
| 2173 | - | // exact-match-wins tiebreak. The buffer-fold for other casings lives | |||
| 2174 | - | // out-of-line so it does not bloat the hot path. | |||
| 2175 | - | func (p *structPlan) lookup(name string) (structField, bool) { | |||
| 2176 | - | if p.hasCollision { | |||
| 2177 | - | if f, ok := p.byName[name]; ok { | |||
| 2178 | - | return f, true | |||
| 2179 | - | } | |||
| 2180 | - | } | |||
| 2181 | - | if f, ok := p.byFold[name]; ok { | |||
| 2182 | - | return f, true | |||
| 2183 | - | } | |||
| 2184 | - | return p.lookupFoldStr(name) | |||
| 2185 | - | } | |||
| 2186 | - | ||||
| 2187 | - | func (p *structPlan) lookupBytes(name []byte) (structField, bool) { | |||
| 2188 | - | if p.hasCollision { | |||
| 2189 | - | if f, ok := p.byName[string(name)]; ok { // does not allocate | |||
| 2190 | - | return f, true | |||
| 2191 | - | } | |||
| 2192 | - | } | |||
| 2193 | - | if f, ok := p.byFold[string(name)]; ok { // does not allocate | |||
| 2194 | - | return f, true | |||
| 2195 | - | } | |||
| 2196 | - | return p.lookupFold(name) | |||
| 2197 | - | } | |||
| 2198 | - | ||||
| 2199 | - | // lookupFold resolves keys whose casing matches neither the exact nor the | |||
| 2200 | - | // lowercased index: it folds to lowercase (in a stack buffer for ASCII, so no | |||
| 2201 | - | // allocation) and retries; only non-ASCII or oversized keys hit strings.ToLower. | |||
| 2202 | - | func (p *structPlan) lookupFold(name []byte) (structField, bool) { | |||
| 2203 | - | if len(name) <= foldBufSize { | |||
| 2204 | - | // Fold into a stack buffer: len(name) <= cap(buf), so the append | |||
| 2205 | - | // never reallocates and nothing escapes to the heap. | |||
| 2206 | - | var buf [foldBufSize]byte | |||
| 2207 | - | b := buf[:0] | |||
| 2208 | - | ascii := true | |||
| 2209 | - | for _, c := range name { | |||
| 2210 | - | if c >= 0x80 { | |||
| 2211 | - | ascii = false | |||
| 2212 | - | break | |||
| 2213 | - | } | |||
| 2214 | - | if c >= 'A' && c <= 'Z' { | |||
| 2215 | - | c += 'a' - 'A' | |||
| 2216 | - | } | |||
| 2217 | - | b = append(b, c) | |||
| 2218 | - | } | |||
| 2219 | - | if ascii { | |||
| 2220 | - | f, ok := p.byFold[string(b)] // does not allocate | |||
| 2221 | - | return f, ok | |||
| 2222 | - | } | |||
| 2223 | - | } | |||
| 2224 | - | f, ok := p.byFold[strings.ToLower(string(name))] | |||
| 2225 | - | return f, ok | |||
| 2226 | - | } | |||
| 2227 | - | ||||
| 2228 | - | func (p *structPlan) lookupFoldStr(name string) (structField, bool) { | |||
| 2229 | - | if len(name) <= foldBufSize { | |||
| 2230 | - | // Fold into a stack buffer: len(name) <= cap(buf), so the append | |||
| 2231 | - | // never reallocates and nothing escapes to the heap. | |||
| 2232 | - | var buf [foldBufSize]byte | |||
| 2233 | - | b := buf[:0] | |||
| 2234 | - | ascii := true | |||
| 2235 | - | for i := 0; i < len(name); i++ { | |||
| 2236 | - | c := name[i] | |||
| 2237 | - | if c >= 0x80 { | |||
| 2238 | - | ascii = false | |||
| 2239 | - | break | |||
| 2240 | - | } | |||
| 2241 | - | if c >= 'A' && c <= 'Z' { | |||
| 2242 | - | c += 'a' - 'A' | |||
| 2243 | - | } | |||
| 2244 | - | b = append(b, c) | |||
| 2245 | - | } | |||
| 2246 | - | if ascii { | |||
| 2247 | - | f, ok := p.byFold[string(b)] // does not allocate | |||
| 2248 | - | return f, ok | |||
| 2249 | - | } | |||
| 2250 | - | } | |||
| 2251 | - | f, ok := p.byFold[strings.ToLower(name)] | |||
| 2252 | - | return f, ok | |||
| 2253 | - | } | |||
| 2254 | - | ||||
| 2255 | - | var structPlans sync.Map // reflect.Type -> *structPlan | |||
| 2256 | - | ||||
| 2257 | - | func planForType(t reflect.Type) *structPlan { | |||
| 2258 | - | if plan, ok := structPlans.Load(t); ok { | |||
| 2259 | - | return plan.(*structPlan) | |||
| 2260 | - | } | |||
| 2261 | - | plan := buildPlan(t) | |||
| 2262 | - | structPlans.Store(t, plan) | |||
| 2263 | - | return plan | |||
| 2264 | - | } | |||
| 2265 | - | ||||
| 2266 | - | func buildPlan(t reflect.Type) *structPlan { | |||
| 2267 | - | plan := &structPlan{ | |||
| 2268 | - | byName: map[string]structField{}, | |||
| 2269 | - | byFold: map[string]structField{}, | |||
| 2270 | - | } | |||
| 2271 | - | addFields(plan, t, nil, map[reflect.Type]bool{}) | |||
| 2272 | - | return plan | |||
| 2273 | - | } | |||
| 2274 | - | ||||
| 2275 | - | // addFields flattens the fields of t into the plan. visited holds the types | |||
| 2276 | - | // being flattened on the current branch: a struct type that embeds itself | |||
| 2277 | - | // (directly or through other types) is not descended into again, mirroring | |||
| 2278 | - | // buildEncPlan. Without this guard a recursive embedding would recurse | |||
| 2279 | - | // forever; the repeated fields are unreachable by flattening anyway. | |||
| 2280 | - | func addFields(plan *structPlan, t reflect.Type, prefix []int, visited map[reflect.Type]bool) { | |||
| 2281 | - | if visited[t] { | |||
| 2282 | - | return | |||
| 2283 | - | } | |||
| 2284 | - | visited[t] = true | |||
| 2285 | - | defer delete(visited, t) | |||
| 2286 | - | ||||
| 2287 | - | var embedded []reflect.StructField | |||
| 2288 | - | for i := 0; i < t.NumField(); i++ { | |||
| 2289 | - | f := t.Field(i) | |||
| 2290 | - | tag, tagged := f.Tag.Lookup("toml") | |||
| 2291 | - | name := f.Name | |||
| 2292 | - | explicitName := "" | |||
| 2293 | - | if tagged { | |||
| 2294 | - | // A tag of exactly "-" drops the field. "-," names it "-". | |||
| 2295 | - | if tag == "-" { | |||
| 2296 | - | continue | |||
| 2297 | - | } | |||
| 2298 | - | parts := strings.SplitN(tag, ",", 2) | |||
| 2299 | - | explicitName = parts[0] | |||
| 2300 | - | if explicitName != "" { | |||
| 2301 | - | name = explicitName | |||
| 2302 | - | } | |||
| 2303 | - | } | |||
| 2304 | - | if f.Anonymous { | |||
| 2305 | - | ft := f.Type | |||
| 2306 | - | if ft.Kind() == reflect.Ptr { | |||
| 2307 | - | ft = ft.Elem() | |||
| 2308 | - | } | |||
| 2309 | - | if ft.Kind() != reflect.Struct { | |||
| 2310 | - | // Embedded non-struct fields are not decoded into. | |||
| 2311 | - | continue | |||
| 2312 | - | } | |||
| 2313 | - | if explicitName == "" { | |||
| 2314 | - | // Embedded structs without an explicit tag name are flattened, | |||
| 2315 | - | // even when their type is unexported: only their own exported | |||
| 2316 | - | // fields are reachable. A tag that only sets options (e.g. | |||
| 2317 | - | // `,inline`) still flattens, matching encoding/json and the | |||
| 2318 | - | // encoder's behavior. | |||
| 2319 | - | embedded = append(embedded, f) | |||
| 2320 | - | continue | |||
| 2321 | - | } | |||
| 2322 | - | // An embedded struct given an explicit tag name acts as a regular | |||
| 2323 | - | // named field. | |||
| 2324 | - | } else if f.PkgPath != "" { | |||
| 2325 | - | // unexported | |||
| 2326 | - | continue | |||
| 2327 | - | } | |||
| 2328 | - | index := make([]int, 0, len(prefix)+1) | |||
| 2329 | - | index = append(index, prefix...) | |||
| 2330 | - | index = append(index, i) | |||
| 2331 | - | sf := structField{index: index, fieldName: f.Name} | |||
| 2332 | - | if _, ok := plan.byName[name]; !ok { | |||
| 2333 | - | plan.byName[name] = sf | |||
| 2334 | - | } | |||
| 2335 | - | lower := strings.ToLower(name) | |||
| 2336 | - | if _, ok := plan.byFold[lower]; !ok { | |||
| 2337 | - | plan.byFold[lower] = sf | |||
| 2338 | - | } else { | |||
| 2339 | - | // Two distinct fields fold to the same name: case-insensitive | |||
| 2340 | - | // matching is ambiguous, so lookups must consult byName first to | |||
| 2341 | - | // keep the exact-match-wins tiebreak deterministic. | |||
| 2342 | - | plan.hasCollision = true | |||
| 2343 | - | } | |||
| 2344 | - | // Index the exact (cased) name as well, so a key written with the | |||
| 2345 | - | // field's own casing resolves in a single byFold lookup. Only fields | |||
| 2346 | - | // whose name is not already lowercase need this extra entry. Any name | |||
| 2347 | - | // that would conflict here also collides under folding (handled | |||
| 2348 | - | // above), so byName-first preserves the exact tiebreak in that case. | |||
| 2349 | - | if name != lower { | |||
| 2350 | - | if _, ok := plan.byFold[name]; !ok { | |||
| 2351 | - | plan.byFold[name] = sf | |||
| 2352 | - | } | |||
| 2353 | - | } | |||
| 2354 | - | } | |||
| 2355 | - | // Embedded structs are flattened after the regular fields, so that | |||
| 2356 | - | // shallower fields win. | |||
| 2357 | - | for _, f := range embedded { | |||
| 2358 | - | ft := f.Type | |||
| 2359 | - | if ft.Kind() == reflect.Ptr { | |||
| 2360 | - | ft = ft.Elem() | |||
| 2361 | - | } | |||
| 2362 | - | index := make([]int, 0, len(prefix)+1) | |||
| 2363 | - | index = append(index, prefix...) | |||
| 2364 | - | idx := f.Index[0] | |||
| 2365 | - | index = append(index, idx) | |||
| 2366 | - | addFields(plan, ft, index, visited) | |||
| 2367 | - | } | |||
| 2368 | - | } | |||
| 2369 | - | ||||
| 2370 | - | // fieldByIndexAlloc returns the field of v at the given index path, | |||
| 2371 | - | // allocating intermediate embedded pointers as needed. | |||
| 2372 | - | func fieldByIndexAlloc(v reflect.Value, index []int) (reflect.Value, error) { | |||
| 2373 | - | // Fast path for non-embedded fields, which have a single-element index: | |||
| 2374 | - | // no intermediate pointer dereferencing is possible. | |||
| 2375 | - | if len(index) == 1 { | |||
| 2376 | - | return v.Field(index[0]), nil | |||
| 2377 | - | } | |||
| 2378 | - | for i, x := range index { | |||
| 2379 | - | if i > 0 { | |||
| 2380 | - | for v.Kind() == reflect.Ptr { | |||
| 2381 | - | if v.IsNil() { | |||
| 2382 | - | if !v.CanSet() { | |||
| 2383 | - | // A nil embedded pointer of unexported type cannot be | |||
| 2384 | - | // allocated: reflect forbids setting it. Match | |||
| 2385 | - | // encoding/json and report it instead of panicking. | |||
| 2386 | - | return reflect.Value{}, fmt.Errorf("toml: cannot set embedded pointer to unexported struct: %s", v.Type().Elem()) | |||
| 2387 | - | } | |||
| 2388 | - | v.Set(reflect.New(v.Type().Elem())) | |||
| 2389 | - | } | |||
| 2390 | - | v = v.Elem() | |||
| 2391 | - | } | |||
| 2392 | - | } | |||
| 2393 | - | v = v.Field(x) | |||
| 2394 | - | } | |||
| 2395 | - | return v, nil | |||
| 2396 | - | } | |||
D vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +0 -124 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +0 -21 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +0 -3 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +0 -83 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +0 -29 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +0 -1686 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +0 -43 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/LICENSE +0 -27 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/difflib/difflib.go +0 -772 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.gitignore +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.golangci.yaml +0 -31 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.goreleaser.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/CHANGELOG.md +0 -350 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/Makefile +0 -150 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/README.md +0 -500 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/create.go +0 -116 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier.go +0 -25 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialects.go +0 -214 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/doc.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/sql_extended.go +0 -23 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store_extended.go +0 -33 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/db.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/dialect.go +0 -74 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/down.go +0 -107 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/fix.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/globals.go +0 -104 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/goose.go +0 -141 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/helpers.go +0 -84 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/install.sh +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/controller/store.go +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +0 -53 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +0 -62 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +0 -70 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +0 -50 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +0 -72 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +0 -118 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +0 -173 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +0 -59 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +0 -394 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +0 -282 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +0 -237 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/locker.go +0 -32 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/postgres.go +0 -165 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +0 -98 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +0 -136 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/log.go +0 -36 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migrate.go +0 -379 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration.go +0 -398 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration_sql.go +0 -115 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/osfs.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider.go +0 -669 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_collect.go +0 -196 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_errors.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_options.go +0 -280 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_run.go +0 -535 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_types.go +0 -91 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/redo.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/register.go +0 -133 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/reset.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/status.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/up.go +0 -221 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/version.go +0 -52 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/LICENSE.txt +0 -21 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/README.md +0 -137 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/doc.go +0 -108 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/eastasianwidth.go +0 -2588 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/emojipresentation.go +0 -295 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_breaktest.go +0 -215 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_properties.go +0 -261 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/grapheme.go +0 -331 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemeproperties.go +0 -1915 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemerules.go +0 -176 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/line.go +0 -134 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/lineproperties.go +0 -3554 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/linerules.go +0 -626 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/properties.go +0 -208 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentence.go +0 -90 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentenceproperties.go +0 -2845 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentencerules.go +0 -276 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/step.go +0 -242 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/width.go +0 -61 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/word.go +0 -89 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordproperties.go +0 -1883 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordrules.go +0 -282 collapsed to keep the page light
D vendor/github.com/rs/zerolog/.gitignore +0 -27 collapsed to keep the page light
D vendor/github.com/rs/zerolog/CONTRIBUTING.md +0 -43 collapsed to keep the page light
D vendor/github.com/rs/zerolog/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/rs/zerolog/README.md +0 -858 collapsed to keep the page light
D vendor/github.com/rs/zerolog/array.go +0 -276 collapsed to keep the page light
D vendor/github.com/rs/zerolog/console.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/context.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/ctx.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder.go +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_cbor.go +0 -45 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_json.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/event.go +0 -919 collapsed to keep the page light
D vendor/github.com/rs/zerolog/example.jsonl +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/fields.go +0 -312 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals.go +0 -208 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals_118.go +0 -30 collapsed to keep the page light
D vendor/github.com/rs/zerolog/go112.go +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/hook.go +0 -64 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/README.md +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/cbor.go +0 -102 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +0 -654 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/string.go +0 -117 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/time.go +0 -111 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/types.go +0 -524 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/bytes.go +0 -85 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/string.go +0 -149 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/types.go +0 -466 collapsed to keep the page light
D vendor/github.com/rs/zerolog/log.go +0 -528 collapsed to keep the page light
D vendor/github.com/rs/zerolog/not_go112.go +0 -5 collapsed to keep the page light
D vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/rs/zerolog/sampler.go +0 -137 collapsed to keep the page light
D vendor/github.com/rs/zerolog/slog.go +0 -247 collapsed to keep the page light
D vendor/github.com/rs/zerolog/syslog.go +0 -89 collapsed to keep the page light
D vendor/github.com/rs/zerolog/writer.go +0 -355 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.travis.yml +0 -17 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/LICENSE.txt +0 -29 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/README.md +0 -335 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/block.go +0 -1612 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/doc.go +0 -46 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/entities.go +0 -2236 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/esc.go +0 -70 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/html.go +0 -952 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/inline.go +0 -1228 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/markdown.go +0 -950 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/node.go +0 -360 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/smartypants.go +0 -457 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.gitignore +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.golangci.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/LICENSE +0 -19 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/README.md +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.nix +0 -17 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/file_type.go +0 -32 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/finder.go +0 -171 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob.go +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob_windows.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/helpers.go +0 -41 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +0 -53 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/justfile +0 -14 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.editorconfig +0 -18 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +0 -1 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/Makefile +0 -59 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/README.md +0 -186 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/fuzzy.go +0 -263 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/LICENSE +0 -202 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/README.md +0 -185 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff.go +0 -134 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_constant.go +0 -25 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_exponential.go +0 -47 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +0 -56 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/rand.go +0 -54 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/retry.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/afero/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/afero/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/afero/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/spf13/afero/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/afero/README.md +0 -474 collapsed to keep the page light
D vendor/github.com/spf13/afero/afero.go +0 -111 collapsed to keep the page light
D vendor/github.com/spf13/afero/appveyor.yml +0 -10 collapsed to keep the page light
D vendor/github.com/spf13/afero/basepath.go +0 -222 collapsed to keep the page light
D vendor/github.com/spf13/afero/cacheOnReadFs.go +0 -315 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_bsds.go +0 -23 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_win_unix.go +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/afero/copyOnWriteFs.go +0 -332 collapsed to keep the page light
D vendor/github.com/spf13/afero/httpFs.go +0 -114 collapsed to keep the page light
D vendor/github.com/spf13/afero/internal/common/adapters.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/iofs.go +0 -302 collapsed to keep the page light
D vendor/github.com/spf13/afero/ioutil.go +0 -243 collapsed to keep the page light
D vendor/github.com/spf13/afero/lstater.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/match.go +0 -110 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dir.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dirmap.go +0 -43 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/file.go +0 -373 collapsed to keep the page light
D vendor/github.com/spf13/afero/memmap.go +0 -463 collapsed to keep the page light
D vendor/github.com/spf13/afero/os.go +0 -113 collapsed to keep the page light
D vendor/github.com/spf13/afero/path.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/afero/readonlyfs.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/afero/regexpfs.go +0 -223 collapsed to keep the page light
D vendor/github.com/spf13/afero/symlink.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/afero/unionFile.go +0 -331 collapsed to keep the page light
D vendor/github.com/spf13/afero/util.go +0 -329 collapsed to keep the page light
D vendor/github.com/spf13/cast/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/cast/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/spf13/cast/.golangci.yaml +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cast/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/cast/Makefile +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/cast/README.md +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/alias.go +0 -69 collapsed to keep the page light
D vendor/github.com/spf13/cast/basic.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cast/cast.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/cast/indirect.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/time.go +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/timeformattype_string.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/cast/map.go +0 -212 collapsed to keep the page light
D vendor/github.com/spf13/cast/number.go +0 -549 collapsed to keep the page light
D vendor/github.com/spf13/cast/slice.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/cast/time.go +0 -116 collapsed to keep the page light
D vendor/github.com/spf13/cast/zz_generated.go +0 -261 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.gitignore +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.golangci.yml +0 -66 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.mailmap +0 -3 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONDUCT.md +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/spf13/cobra/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/cobra/MAINTAINERS +0 -13 collapsed to keep the page light
D vendor/github.com/spf13/cobra/Makefile +0 -35 collapsed to keep the page light
D vendor/github.com/spf13/cobra/README.md +0 -133 collapsed to keep the page light
D vendor/github.com/spf13/cobra/SECURITY.md +0 -105 collapsed to keep the page light
D vendor/github.com/spf13/cobra/active_help.go +0 -60 collapsed to keep the page light
D vendor/github.com/spf13/cobra/args.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completions.go +0 -709 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completionsV2.go +0 -484 collapsed to keep the page light
D vendor/github.com/spf13/cobra/cobra.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command.go +0 -2072 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_notwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_win.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/cobra/completions.go +0 -1020 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/man_docs.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/md_docs.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/rest_docs.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/util.go +0 -52 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/yaml_docs.go +0 -175 collapsed to keep the page light
D vendor/github.com/spf13/cobra/fish_completions.go +0 -292 collapsed to keep the page light
D vendor/github.com/spf13/cobra/flag_groups.go +0 -290 collapsed to keep the page light
D vendor/github.com/spf13/cobra/powershell_completions.go +0 -350 collapsed to keep the page light
D vendor/github.com/spf13/cobra/shell_completions.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/cobra/zsh_completions.go +0 -308 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.editorconfig +0 -12 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.golangci.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.travis.yml +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/pflag/LICENSE +0 -28 collapsed to keep the page light
D vendor/github.com/spf13/pflag/README.md +0 -323 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool.go +0 -94 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_func.go +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_slice.go +0 -185 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bytes.go +0 -209 collapsed to keep the page light
D vendor/github.com/spf13/pflag/count.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration.go +0 -86 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/errors.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/flag.go +0 -1289 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/func.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/pflag/golangflag.go +0 -161 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int_slice.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip.go +0 -97 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip_slice.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipmask.go +0 -122 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet_slice.go +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string.go +0 -80 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_array.go +0 -125 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_slice.go +0 -163 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int64.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_string.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/pflag/text.go +0 -81 collapsed to keep the page light
D vendor/github.com/spf13/pflag/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint64.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint_slice.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/viper/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/viper/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/.golangci.yaml +0 -118 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamlignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamllint.yaml +0 -6 collapsed to keep the page light
D vendor/github.com/spf13/viper/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/Makefile +0 -87 collapsed to keep the page light
D vendor/github.com/spf13/viper/README.md +0 -931 collapsed to keep the page light
D vendor/github.com/spf13/viper/TROUBLESHOOTING.md +0 -32 collapsed to keep the page light
D vendor/github.com/spf13/viper/UPGRADE.md +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/viper/encoding.go +0 -181 collapsed to keep the page light
D vendor/github.com/spf13/viper/experimental.go +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/file.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/viper/finder.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/viper/flags.go +0 -57 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.lock +0 -255 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.nix +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/json/codec.go +0 -17 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +0 -16 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +0 -14 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/logger.go +0 -31 collapsed to keep the page light
D vendor/github.com/spf13/viper/remote.go +0 -259 collapsed to keep the page light
D vendor/github.com/spf13/viper/util.go +0 -211 collapsed to keep the page light
D vendor/github.com/spf13/viper/viper.go +0 -2077 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.codeclimate.yml +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.gitignore +0 -11 collapsed to keep the page light
D vendor/github.com/stretchr/objx/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/stretchr/objx/README.md +0 -91 collapsed to keep the page light
D vendor/github.com/stretchr/objx/Taskfile.yml +0 -27 collapsed to keep the page light
D vendor/github.com/stretchr/objx/accessors.go +0 -197 collapsed to keep the page light
D vendor/github.com/stretchr/objx/conversions.go +0 -280 collapsed to keep the page light
D vendor/github.com/stretchr/objx/doc.go +0 -66 collapsed to keep the page light
D vendor/github.com/stretchr/objx/map.go +0 -214 collapsed to keep the page light
D vendor/github.com/stretchr/objx/mutations.go +0 -77 collapsed to keep the page light
D vendor/github.com/stretchr/objx/security.go +0 -12 collapsed to keep the page light
D vendor/github.com/stretchr/objx/tests.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific.go +0 -346 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific_codegen.go +0 -2261 collapsed to keep the page light
D vendor/github.com/stretchr/objx/value.go +0 -159 collapsed to keep the page light
D vendor/github.com/stretchr/testify/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_compare.go +0 -495 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go +0 -866 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go +0 -1723 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_order.go +0 -81 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertions.go +0 -2295 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/doc.go +0 -50 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/errors.go +0 -10 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/forward_assertions.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/http_assertions.go +0 -165 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +0 -24 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +0 -36 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/doc.go +0 -44 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/mock.go +0 -1298 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/doc.go +0 -31 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/forward_requirements.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go +0 -2180 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go.tmpl +0 -6 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go +0 -1724 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/requirements.go +0 -29 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env.invalid +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.gitignore +0 -4 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.golangci.yaml +0 -7 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/CHANGELOG.md +0 -105 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/README.md +0 -129 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/gotenv.go +0 -409 collapsed to keep the page light
D vendor/github.com/xo/terminfo/.gitignore +0 -9 collapsed to keep the page light
D vendor/github.com/xo/terminfo/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/xo/terminfo/README.md +0 -139 collapsed to keep the page light
D vendor/github.com/xo/terminfo/caps.go +0 -31 collapsed to keep the page light
D vendor/github.com/xo/terminfo/capvals.go +0 -1525 collapsed to keep the page light
D vendor/github.com/xo/terminfo/color.go +0 -88 collapsed to keep the page light
D vendor/github.com/xo/terminfo/dec.go +0 -245 collapsed to keep the page light
D vendor/github.com/xo/terminfo/load.go +0 -64 collapsed to keep the page light
D vendor/github.com/xo/terminfo/param.go +0 -405 collapsed to keep the page light
D vendor/github.com/xo/terminfo/stack.go +0 -48 collapsed to keep the page light
D vendor/github.com/xo/terminfo/terminfo.go +0 -479 collapsed to keep the page light
D vendor/go.uber.org/multierr/.codecov.yml +0 -15 collapsed to keep the page light
D vendor/go.uber.org/multierr/.gitignore +0 -4 collapsed to keep the page light
D vendor/go.uber.org/multierr/CHANGELOG.md +0 -95 collapsed to keep the page light
D vendor/go.uber.org/multierr/LICENSE.txt +0 -19 collapsed to keep the page light
D vendor/go.uber.org/multierr/Makefile +0 -38 collapsed to keep the page light
D vendor/go.uber.org/multierr/README.md +0 -43 collapsed to keep the page light
D vendor/go.uber.org/multierr/error.go +0 -646 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_post_go120.go +0 -48 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_pre_go120.go +0 -79 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/LICENSE +0 -50 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/NOTICE +0 -13 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/README.md +0 -171 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/apic.go +0 -747 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/decode.go +0 -1018 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/emitterc.go +0 -2054 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/encode.go +0 -577 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/parserc.go +0 -1274 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/readerc.go +0 -434 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/resolve.go +0 -326 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/scannerc.go +0 -3040 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/sorter.go +0 -134 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/writerc.go +0 -48 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yaml.go +0 -703 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlh.go +0 -811 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlprivateh.go +0 -198 collapsed to keep the page light
D vendor/golang.org/x/image/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/image/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/image/draw/draw.go +0 -67 collapsed to keep the page light
D vendor/golang.org/x/image/draw/impl.go +0 -8426 collapsed to keep the page light
D vendor/golang.org/x/image/draw/scale.go +0 -525 collapsed to keep the page light
D vendor/golang.org/x/image/math/f64/f64.go +0 -37 collapsed to keep the page light
D vendor/golang.org/x/mod/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/mod/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/print.go +0 -184 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/read.go +0 -962 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/rule.go +0 -1951 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/work.go +0 -333 collapsed to keep the page light
D vendor/golang.org/x/mod/module/module.go +0 -840 collapsed to keep the page light
D vendor/golang.org/x/mod/module/pseudo.go +0 -250 collapsed to keep the page light
D vendor/golang.org/x/mod/semver/semver.go +0 -407 collapsed to keep the page light
D vendor/golang.org/x/net/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/net/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/atom.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/table.go +0 -785 collapsed to keep the page light
D vendor/golang.org/x/net/html/const.go +0 -111 collapsed to keep the page light
D vendor/golang.org/x/net/html/doc.go +0 -122 collapsed to keep the page light
D vendor/golang.org/x/net/html/doctype.go +0 -156 collapsed to keep the page light
D vendor/golang.org/x/net/html/entity.go +0 -2252 collapsed to keep the page light
D vendor/golang.org/x/net/html/escape.go +0 -379 collapsed to keep the page light
D vendor/golang.org/x/net/html/foreign.go +0 -221 collapsed to keep the page light
D vendor/golang.org/x/net/html/iter.go +0 -54 collapsed to keep the page light
D vendor/golang.org/x/net/html/node.go +0 -230 collapsed to keep the page light
D vendor/golang.org/x/net/html/nodetype_string.go +0 -31 collapsed to keep the page light
D vendor/golang.org/x/net/html/parse.go +0 -2378 collapsed to keep the page light
D vendor/golang.org/x/net/html/render.go +0 -316 collapsed to keep the page light
D vendor/golang.org/x/net/html/token.go +0 -1322 collapsed to keep the page light
D vendor/golang.org/x/net/idna/idna.go +0 -880 collapsed to keep the page light
D vendor/golang.org/x/net/idna/punycode.go +0 -220 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables15.0.0.go +0 -5144 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables17.0.0.go +0 -5302 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trie.go +0 -51 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trieval.go +0 -119 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
D vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff