@@ -52,44 +52,45 @@ syntax of package template. The default output is equivalent
52
52
to -f '{{.ImportPath}}'. The struct being passed to the template is:
53
53
54
54
type Package struct {
55
- Dir string // directory containing package sources
56
- ImportPath string // import path of package in dir
57
- ImportComment string // path in import comment on package statement
58
- Name string // package name
59
- Doc string // package documentation string
60
- Target string // install path
61
- Shlib string // the shared library that contains this package (only set when -linkshared)
62
- Goroot bool // is this package in the Go root?
63
- Standard bool // is this package part of the standard Go library?
64
- Stale bool // would 'go install' do anything for this package?
65
- StaleReason string // explanation for Stale==true
66
- Root string // Go root or Go path dir containing this package
67
- ConflictDir string // this directory shadows Dir in $GOPATH
68
- BinaryOnly bool // binary-only package (no longer supported)
69
- ForTest string // package is only for use in named test
70
- Export string // file containing export data (when using -export)
71
- BuildID string // build ID of the compiled package (when using -export)
72
- Module *Module // info about package's containing module, if any (can be nil)
73
- Match []string // command-line patterns matching this package
74
- DepOnly bool // package is only a dependency, not explicitly listed
55
+ Dir string // directory containing package sources
56
+ ImportPath string // import path of package in dir
57
+ ImportComment string // path in import comment on package statement
58
+ Name string // package name
59
+ Doc string // package documentation string
60
+ Target string // install path
61
+ Shlib string // the shared library that contains this package (only set when -linkshared)
62
+ Goroot bool // is this package in the Go root?
63
+ Standard bool // is this package part of the standard Go library?
64
+ Stale bool // would 'go install' do anything for this package?
65
+ StaleReason string // explanation for Stale==true
66
+ Root string // Go root or Go path dir containing this package
67
+ ConflictDir string // this directory shadows Dir in $GOPATH
68
+ BinaryOnly bool // binary-only package (no longer supported)
69
+ ForTest string // package is only for use in named test
70
+ Export string // file containing export data (when using -export)
71
+ BuildID string // build ID of the compiled package (when using -export)
72
+ Module *Module // info about package's containing module, if any (can be nil)
73
+ Match []string // command-line patterns matching this package
74
+ DepOnly bool // package is only a dependency, not explicitly listed
75
+ DefaultGODEBUG string // default GODEBUG setting, for main packages
75
76
76
77
// Source files
77
- GoFiles []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
78
- CgoFiles []string // .go source files that import "C"
79
- CompiledGoFiles []string // .go files presented to compiler (when using -compiled)
80
- IgnoredGoFiles []string // .go source files ignored due to build constraints
78
+ GoFiles []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
79
+ CgoFiles []string // .go source files that import "C"
80
+ CompiledGoFiles []string // .go files presented to compiler (when using -compiled)
81
+ IgnoredGoFiles []string // .go source files ignored due to build constraints
81
82
IgnoredOtherFiles []string // non-.go source files ignored due to build constraints
82
- CFiles []string // .c source files
83
- CXXFiles []string // .cc, .cxx and .cpp source files
84
- MFiles []string // .m source files
85
- HFiles []string // .h, .hh, .hpp and .hxx source files
86
- FFiles []string // .f, .F, .for and .f90 Fortran source files
87
- SFiles []string // .s source files
88
- SwigFiles []string // .swig files
89
- SwigCXXFiles []string // .swigcxx files
90
- SysoFiles []string // .syso object files to add to archive
91
- TestGoFiles []string // _test.go files in package
92
- XTestGoFiles []string // _test.go files outside package
83
+ CFiles []string // .c source files
84
+ CXXFiles []string // .cc, .cxx and .cpp source files
85
+ MFiles []string // .m source files
86
+ HFiles []string // .h, .hh, .hpp and .hxx source files
87
+ FFiles []string // .f, .F, .for and .f90 Fortran source files
88
+ SFiles []string // .s source files
89
+ SwigFiles []string // .swig files
90
+ SwigCXXFiles []string // .swigcxx files
91
+ SysoFiles []string // .syso object files to add to archive
92
+ TestGoFiles []string // _test.go files in package
93
+ XTestGoFiles []string // _test.go files outside package
93
94
94
95
// Embedded files
95
96
EmbedPatterns []string // //go:embed patterns
0 commit comments