aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader/loader.go
diff options
context:
space:
mode:
Diffstat (limited to 'loader/loader.go')
-rw-r--r--loader/loader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.go b/loader/loader.go
index f02219425..88eb15dac 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -104,7 +104,7 @@ type EmbedFile struct {
// Load loads the given package with all dependencies (including the runtime
// package). Call .Parse() afterwards to parse all Go files (including CGo
// processing, if necessary).
-func Load(config *compileopts.Config, inputPkgs []string, clangHeaders string, typeChecker types.Config) (*Program, error) {
+func Load(config *compileopts.Config, inputPkg string, clangHeaders string, typeChecker types.Config) (*Program, error) {
goroot, err := GetCachedGoroot(config)
if err != nil {
return nil, err
@@ -133,7 +133,7 @@ func Load(config *compileopts.Config, inputPkgs []string, clangHeaders string, t
if config.TestConfig.CompileTestBinary {
extraArgs = append(extraArgs, "-test")
}
- cmd, err := List(config, extraArgs, inputPkgs)
+ cmd, err := List(config, extraArgs, []string{inputPkg})
if err != nil {
return nil, err
}