
Formally define these types and document their meaning. We will auto-generate the dlv-dap documentation from these Go type doc. mapToStruct is a helper that sets the given struct's fields with the info in map[string]interface{} (launch/attach's Arguments). We achieve this by reencoding map[string]interface{} to json and decoding back to the target struct. If go-dap left the implementation-specific arguments as json.RawMessage and let the implementation decode as needed, this reencoding could've been avoided. encoding/json itself does not have mean to enforce required fields. There was a test case that checks substitutePath elements must set both from/to fields. Path.UnmarshalJSON implements the check. I am not yet sure about the need for distinction between missing 'from/to' and empty strings yet. (empty value is useful when dealing with a binary built with trimpath, right?) A minor behavior change - previously, if noDebug is not a boolean type, we ignored the attribute silently. Since we use json decoding, any mismatched types will cause an error and this non-boolean type noDebug attribute will result in launch failure.
77 lines
2.4 KiB
Plaintext
77 lines
2.4 KiB
Plaintext
# github.com/aquasecurity/libbpfgo v0.1.2-0.20210708203834-4928d36fafac
|
|
## explicit
|
|
github.com/aquasecurity/libbpfgo
|
|
github.com/aquasecurity/libbpfgo/helpers
|
|
# github.com/cosiner/argv v0.1.0
|
|
## explicit
|
|
github.com/cosiner/argv
|
|
# github.com/cpuguy83/go-md2man/v2 v2.0.0
|
|
github.com/cpuguy83/go-md2man/v2/md2man
|
|
# github.com/creack/pty v1.1.9
|
|
## explicit
|
|
github.com/creack/pty
|
|
# github.com/derekparker/trie v0.0.0-20200317170641-1fdf38b7b0e9
|
|
## explicit
|
|
github.com/derekparker/trie
|
|
# github.com/google/go-dap v0.5.1-0.20210713061233-c91b005e3987
|
|
## explicit
|
|
github.com/google/go-dap
|
|
# github.com/hashicorp/golang-lru v0.5.4
|
|
## explicit
|
|
github.com/hashicorp/golang-lru/simplelru
|
|
# github.com/inconshreveable/mousetrap v1.0.0
|
|
github.com/inconshreveable/mousetrap
|
|
# github.com/konsorten/go-windows-terminal-sequences v1.0.3
|
|
github.com/konsorten/go-windows-terminal-sequences
|
|
# github.com/mattn/go-colorable v0.0.9
|
|
## explicit
|
|
github.com/mattn/go-colorable
|
|
# github.com/mattn/go-isatty v0.0.3
|
|
## explicit
|
|
github.com/mattn/go-isatty
|
|
# github.com/peterh/liner v0.0.0-20170317030525-88609521dc4b
|
|
## explicit
|
|
github.com/peterh/liner
|
|
# github.com/russross/blackfriday/v2 v2.0.1
|
|
github.com/russross/blackfriday/v2
|
|
# github.com/shurcooL/sanitized_anchor_name v1.0.0
|
|
github.com/shurcooL/sanitized_anchor_name
|
|
# github.com/sirupsen/logrus v1.6.0
|
|
## explicit
|
|
github.com/sirupsen/logrus
|
|
# github.com/spf13/cobra v1.1.3
|
|
## explicit
|
|
github.com/spf13/cobra
|
|
github.com/spf13/cobra/doc
|
|
# github.com/spf13/pflag v1.0.5
|
|
github.com/spf13/pflag
|
|
# go.starlark.net v0.0.0-20200821142938-949cc6f4b097
|
|
## explicit
|
|
go.starlark.net/internal/compile
|
|
go.starlark.net/internal/spell
|
|
go.starlark.net/resolve
|
|
go.starlark.net/starlark
|
|
go.starlark.net/syntax
|
|
# golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4
|
|
## explicit
|
|
golang.org/x/arch/arm64/arm64asm
|
|
golang.org/x/arch/x86/x86asm
|
|
# golang.org/x/sys v0.0.0-20210514084401-e8d321eab015
|
|
## explicit
|
|
golang.org/x/sys/internal/unsafeheader
|
|
golang.org/x/sys/unix
|
|
golang.org/x/sys/windows
|
|
# golang.org/x/tools v0.0.0-20191127201027-ecd32218bd7f
|
|
## explicit
|
|
golang.org/x/tools/go/gcexportdata
|
|
golang.org/x/tools/go/internal/gcimporter
|
|
golang.org/x/tools/go/internal/packagesdriver
|
|
golang.org/x/tools/go/packages
|
|
golang.org/x/tools/internal/fastwalk
|
|
golang.org/x/tools/internal/gopathwalk
|
|
golang.org/x/tools/internal/semver
|
|
golang.org/x/tools/internal/span
|
|
# gopkg.in/yaml.v2 v2.4.0
|
|
## explicit
|
|
gopkg.in/yaml.v2
|