exe | jq -C .imports
[
"KERNEL32.dll",
"msvcrt.dll",
"USER32.dll"
]
Oh, yeah, I see it now:
// ImportedLibraries returns the names of all libraries
// referred to by the binary f that are expected to be
// linked with the binary at dynamic link time.
func (f *File) ImportedLibraries() ([]string, error) {
// TODO
// cgo -dynimport don't