diff options
author | Michael Matloob <matloob@golang.org> | 2019-04-02 15:54:42 -0400 |
---|---|---|
committer | Michael Matloob <matloob@golang.org> | 2019-04-02 20:06:28 +0000 |
commit | 202502a5a9245830b5ec7b877e26b67760da8e67 (patch) | |
tree | 95296b6f4280adcef91ce99bb38796095934287b | |
parent | c5ac96b4c419ee8b66a6eb7e805180844f9f176b (diff) | |
download | golang-x-tools-202502a5a9245830b5ec7b877e26b67760da8e67.tar.gz |
go/packages: fix json struct tag on driverRequest.Command
Fixes golang/go#31181
Change-Id: I99bceb66809ed66393cc8e8deb5b82b8429ca337
Reviewed-on: https://go-review.googlesource.com/c/tools/+/170477
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r-- | go/packages/external.go | 2 | ||||
-rw-r--r-- | go/packages/packages.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/go/packages/external.go b/go/packages/external.go index 860c3ec15..22ff769ef 100644 --- a/go/packages/external.go +++ b/go/packages/external.go @@ -18,7 +18,7 @@ import ( // Driver type driverRequest struct { - Command string `json "command"` + Command string `json:"command"` Mode LoadMode `json:"mode"` Env []string `json:"env"` BuildFlags []string `json:"build_flags"` diff --git a/go/packages/packages.go b/go/packages/packages.go index 7d0198ff9..b0e827fb6 100644 --- a/go/packages/packages.go +++ b/go/packages/packages.go @@ -137,7 +137,7 @@ type Config struct { BuildFlags []string // Fset provides source position information for syntax trees and types. - // If Fset is nil, the loader will create a new FileSet. + // If Fset is nil, Load will use a new fileset, but preserve Fset's value. Fset *token.FileSet // ParseFile is called to read and parse each file |