mirror of
https://github.com/golang/go
synced 2024-11-19 03:34:41 -07:00
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>
This commit is contained in:
parent
c5ac96b4c4
commit
202502a5a9
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
// Driver
|
// Driver
|
||||||
type driverRequest struct {
|
type driverRequest struct {
|
||||||
Command string `json "command"`
|
Command string `json:"command"`
|
||||||
Mode LoadMode `json:"mode"`
|
Mode LoadMode `json:"mode"`
|
||||||
Env []string `json:"env"`
|
Env []string `json:"env"`
|
||||||
BuildFlags []string `json:"build_flags"`
|
BuildFlags []string `json:"build_flags"`
|
||||||
|
@ -137,7 +137,7 @@ type Config struct {
|
|||||||
BuildFlags []string
|
BuildFlags []string
|
||||||
|
|
||||||
// Fset provides source position information for syntax trees and types.
|
// 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
|
Fset *token.FileSet
|
||||||
|
|
||||||
// ParseFile is called to read and parse each file
|
// ParseFile is called to read and parse each file
|
||||||
|
Loading…
Reference in New Issue
Block a user