Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit c0252ac

Browse files
committed
Less whitespace
1 parent 54c56ed commit c0252ac

File tree

5 files changed

+11
-191
lines changed

5 files changed

+11
-191
lines changed

examples/build/README.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ only when building the package for 32-bit x86.
146146

147147

148148

149-
150149
## Variables
151150

152151
<pre>var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)</pre>
@@ -155,19 +154,13 @@ ToolDir is the directory containing build tools.
155154

156155

157156

158-
159-
160-
161157
## func ArchChar
162158
<pre>func ArchChar(goarch string) (string, error)</pre>
163159
ArchChar returns the architecture character for the given goarch.
164160
For example, ArchChar("amd64") returns "6".
165161

166162

167163

168-
169-
170-
171164
## func IsLocalImport
172165
<pre>func IsLocalImport(path string) bool</pre>
173166
IsLocalImport reports whether the import path is
@@ -176,9 +169,6 @@ a local import path, like ".", "..", "./foo", or "../foo".
176169

177170

178171

179-
180-
181-
182172
## type Context
183173
<pre>type Context struct {
184174
GOARCH string // target architecture
@@ -246,7 +236,6 @@ A Context specifies the supporting context for a build.
246236

247237

248238

249-
250239
<pre>var Default Context = defaultContext()</pre>
251240
Default is the default Context for builds.
252241
It uses the GOARCH, GOOS, GOROOT, and GOPATH environment variables
@@ -258,8 +247,6 @@ if set, or else the compiled code's GOARCH, GOOS, and GOROOT.
258247

259248

260249

261-
262-
263250
### func (\*Context) Import
264251

265252
func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Package, error)
@@ -283,7 +270,6 @@ If an error occurs, Import returns a non-nil error and a non-nil
283270

284271

285272

286-
287273
### func (\*Context) ImportDir
288274

289275
func (ctxt *Context) ImportDir(dir string, mode ImportMode) (*Package, error)
@@ -293,7 +279,6 @@ the named directory.
293279

294280

295281

296-
297282
### func (\*Context) MatchFile
298283

299284
func (ctxt *Context) MatchFile(dir, name string) (match bool, err error)
@@ -307,7 +292,6 @@ read some or all of the file's content.
307292

308293

309294

310-
311295
### func (\*Context) SrcDirs
312296

313297
func (ctxt *Context) SrcDirs() []string
@@ -319,16 +303,12 @@ that do not exist.
319303

320304

321305

322-
323-
324-
325306
## type ImportMode
326307
<pre>type ImportMode uint</pre>
327308
An ImportMode controls the behavior of the Import method.
328309

329310

330311

331-
332312
<pre>const (
333313
// If FindOnly is set, Import stops after locating the directory
334314
// that should contain the sources for a package. It does not
@@ -348,10 +328,6 @@ An ImportMode controls the behavior of the Import method.
348328

349329

350330

351-
352-
353-
354-
355331
## type NoGoError
356332
<pre>type NoGoError struct {
357333
Dir string
@@ -370,17 +346,13 @@ test files, files hidden by build tags, and so on.)
370346

371347

372348

373-
374349
### func (\*NoGoError) Error
375350

376351
func (e *NoGoError) Error() string
377352

378353

379354

380355

381-
382-
383-
384356
## type Package
385357
<pre>type Package struct {
386358
Dir string // directory containing package sources
@@ -437,18 +409,13 @@ A Package describes the Go package found in a directory.
437409

438410

439411

440-
441-
442412
### func Import
443413

444414
func Import(path, srcDir string, mode ImportMode) (*Package, error)
445415

446416
Import is shorthand for Default.Import.
447417

448418

449-
450-
451-
452419
### func ImportDir
453420

454421
func ImportDir(dir string, mode ImportMode) (*Package, error)
@@ -458,8 +425,6 @@ ImportDir is shorthand for Default.ImportDir.
458425

459426

460427

461-
462-
463428
### func (\*Package) IsCommand
464429

465430
func (p *Package) IsCommand() bool

examples/fs/README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ Package fs provides filesystem-related functions.
1010

1111

1212

13-
14-
15-
1613
## type FileSystem
1714
<pre>type FileSystem interface {
1815

@@ -45,9 +42,6 @@ FileSystem defines the methods of an abstract filesystem.
4542

4643

4744

48-
49-
50-
5145
## type Walker
5246
<pre>type Walker struct {
5347
// contains filtered or unexported fields
@@ -68,18 +62,13 @@ Walker does not follow symbolic links.
6862

6963

7064

71-
72-
7365
### func Walk
7466

7567
func Walk(root string) *Walker
7668

7769
Walk returns a new Walker rooted at root.
7870

7971

80-
81-
82-
8372
### func WalkFS
8473

8574
func WalkFS(root string, fs FileSystem) *Walker
@@ -89,8 +78,6 @@ WalkFS returns a new Walker rooted at root on the FileSystem fs.
8978

9079

9180

92-
93-
9481
### func (\*Walker) Err
9582

9683
func (w *Walker) Err() error
@@ -101,7 +88,6 @@ an error, w will not descend into that directory.
10188

10289

10390

104-
10591
### func (\*Walker) Path
10692

10793
func (w *Walker) Path() string
@@ -113,7 +99,6 @@ a directory containing the file "a", Path will return "dir/a".
11399

114100

115101

116-
117102
### func (\*Walker) SkipDir
118103

119104
func (w *Walker) SkipDir()
@@ -123,7 +108,6 @@ If w is not on a directory, SkipDir has no effect.
123108

124109

125110

126-
127111
### func (\*Walker) Stat
128112

129113
func (w *Walker) Stat() os.FileInfo
@@ -133,7 +117,6 @@ visited by a call to Step.
133117

134118

135119

136-
137120
### func (\*Walker) Step
138121

139122
func (w *Walker) Step() bool

0 commit comments

Comments
 (0)