@@ -216,7 +216,7 @@ ToolDir is the directory containing build tools.
216
216
217
217
218
218
219
- ## <a name =" ArchChar " >func</a > [ ArchChar] ( /src/target/build.go?s=45435:45479#L1553 )
219
+ ## <a name =" ArchChar " >func</a > [ ArchChar] ( /src/target/build.go?s=45435:45479#L1563 )
220
220
``` go
221
221
func ArchChar (goarch string ) (string , error )
222
222
```
@@ -228,7 +228,7 @@ no longer vary by architecture; they are compile, link, .o, and a.out, respectiv
228
228
229
229
230
230
231
- ## <a name="IsLocalImport">func</a> [IsLocalImport](/src/target/build.go?s=44955:44991#L1543 )
231
+ ## <a name="IsLocalImport">func</a> [IsLocalImport](/src/target/build.go?s=44955:44991#L1553 )
232
232
``` go
233
233
func IsLocalImport(path string) bool
234
234
```
@@ -238,7 +238,7 @@ a local import path, like ".", "..", "./foo", or "../foo".
238
238
239
239
240
240
241
- ## <a name="Context">type</a> [Context](/src/target/build.go?s=450:3568#L20 )
241
+ ## <a name="Context">type</a> [Context](/src/target/build.go?s=450:3568#L30 )
242
242
``` go
243
243
type Context struct {
244
244
GOARCH string // target architecture
@@ -321,7 +321,7 @@ if set, or else the compiled code's GOARCH, GOOS, and GOROOT.
321
321
322
322
323
323
324
- ### <a name =" Context.Import " >func</a > (\* Context) [ Import] ( /src/target/build.go?s=16697:16787#L476 )
324
+ ### <a name =" Context.Import " >func</a > (\* Context) [ Import] ( /src/target/build.go?s=16697:16787#L486 )
325
325
``` go
326
326
func (ctxt *Context ) Import (path string , srcDir string , mode ImportMode ) (*Package , error )
327
327
```
@@ -345,7 +345,7 @@ If an error occurs, Import returns a non-nil error and a non-nil
345
345
346
346
347
347
348
- ### <a name="Context.ImportDir">func</a> (\*Context) [ImportDir](/src/target/build.go?s=14860:14937#L424 )
348
+ ### <a name="Context.ImportDir">func</a> (\*Context) [ImportDir](/src/target/build.go?s=14860:14937#L434 )
349
349
``` go
350
350
func (ctxt *Context) ImportDir(dir string, mode ImportMode) (*Package, error)
351
351
```
@@ -355,7 +355,7 @@ the named directory.
355
355
356
356
357
357
358
- ### <a name="Context.MatchFile">func</a> (\*Context) [MatchFile](/src/target/build.go?s=30989:31061#L1022 )
358
+ ### <a name="Context.MatchFile">func</a> (\*Context) [MatchFile](/src/target/build.go?s=30989:31061#L1032 )
359
359
``` go
360
360
func (ctxt *Context) MatchFile(dir, name string) (match bool, err error)
361
361
```
@@ -369,7 +369,7 @@ read some or all of the file's content.
369
369
370
370
371
371
372
- ### <a name="Context.SrcDirs">func</a> (\*Context) [SrcDirs](/src/target/build.go?s=7522:7561#L228 )
372
+ ### <a name="Context.SrcDirs">func</a> (\*Context) [SrcDirs](/src/target/build.go?s=7522:7561#L238 )
373
373
``` go
374
374
func (ctxt *Context) SrcDirs() []string
375
375
```
@@ -380,7 +380,7 @@ that do not exist.
380
380
381
381
382
382
383
- ## <a name="ImportMode">type</a> [ImportMode](/src/target/build.go?s=9780:9800#L315 )
383
+ ## <a name="ImportMode">type</a> [ImportMode](/src/target/build.go?s=9780:9800#L325 )
384
384
``` go
385
385
type ImportMode uint
386
386
```
@@ -441,7 +441,7 @@ const (
441
441
442
442
443
443
444
- ## <a name="MultiplePackageError">type</a> [MultiplePackageError](/src/target/build.go?s=15413:15621#L441 )
444
+ ## <a name="MultiplePackageError">type</a> [MultiplePackageError](/src/target/build.go?s=15413:15621#L451 )
445
445
``` go
446
446
type MultiplePackageError struct {
447
447
Dir string // directory containing files
@@ -461,14 +461,14 @@ multiple buildable Go source files for multiple packages.
461
461
462
462
463
463
464
- ### <a name =" MultiplePackageError.Error " >func</a > (\* MultiplePackageError) [ Error] ( /src/target/build.go?s=15623:15668#L447 )
464
+ ### <a name =" MultiplePackageError.Error " >func</a > (\* MultiplePackageError) [ Error] ( /src/target/build.go?s=15623:15668#L457 )
465
465
``` go
466
466
func (e *MultiplePackageError ) Error () string
467
467
```
468
468
469
469
470
470
471
- ## <a name="NoGoError">type</a> [NoGoError](/src/target/build.go?s=15165:15202#L431 )
471
+ ## <a name="NoGoError">type</a> [NoGoError](/src/target/build.go?s=15165:15202#L441 )
472
472
``` go
473
473
type NoGoError struct {
474
474
Dir string
@@ -487,14 +487,14 @@ test files, files hidden by build tags, and so on.)
487
487
488
488
489
489
490
- ### <a name =" NoGoError.Error " >func</a > (\* NoGoError) [ Error] ( /src/target/build.go?s=15204:15238#L435 )
490
+ ### <a name =" NoGoError.Error " >func</a > (\* NoGoError) [ Error] ( /src/target/build.go?s=15204:15238#L445 )
491
491
``` go
492
492
func (e *NoGoError ) Error () string
493
493
```
494
494
495
495
496
496
497
- ## <a name="Package">type</a> [Package](/src/target/build.go?s=11686:14547#L362 )
497
+ ## <a name="Package">type</a> [Package](/src/target/build.go?s=11686:14547#L372 )
498
498
``` go
499
499
type Package struct {
500
500
Dir string // directory containing package sources
@@ -557,14 +557,14 @@ A Package describes the Go package found in a directory.
557
557
558
558
559
559
560
- ### <a name =" Import " >func</a > [ Import] ( /src/target/build.go?s=33366:33433#L1107 )
560
+ ### <a name =" Import " >func</a > [ Import] ( /src/target/build.go?s=33366:33433#L1117 )
561
561
``` go
562
562
func Import (path , srcDir string , mode ImportMode ) (*Package , error )
563
563
```
564
564
Import is shorthand for Default.Import.
565
565
566
566
567
- ### <a name="ImportDir">func</a> [ImportDir](/src/target/build.go?s=33531:33592#L1112 )
567
+ ### <a name="ImportDir">func</a> [ImportDir](/src/target/build.go?s=33531:33592#L1122 )
568
568
``` go
569
569
func ImportDir(dir string, mode ImportMode) (*Package, error)
570
570
```
@@ -574,7 +574,7 @@ ImportDir is shorthand for Default.ImportDir.
574
574
575
575
576
576
577
- ### <a name="Package.IsCommand">func</a> (\*Package) [IsCommand](/src/target/build.go?s=14705:14739#L418 )
577
+ ### <a name="Package.IsCommand">func</a> (\*Package) [IsCommand](/src/target/build.go?s=14705:14739#L428 )
578
578
``` go
579
579
func (p *Package) IsCommand() bool
580
580
```
0 commit comments