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

Commit 54c56ed

Browse files
committed
less whitespace
1 parent f4f3beb commit 54c56ed

File tree

5 files changed

+2
-66
lines changed

5 files changed

+2
-66
lines changed

examples/build/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ if set, or else the compiled code's GOARCH, GOOS, and GOROOT.
260260

261261

262262

263-
264263
### func (\*Context) Import
265264

266265
func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Package, error)
@@ -285,8 +284,6 @@ If an error occurs, Import returns a non-nil error and a non-nil
285284

286285

287286

288-
289-
290287
### func (\*Context) ImportDir
291288

292289
func (ctxt *Context) ImportDir(dir string, mode ImportMode) (*Package, error)
@@ -297,8 +294,6 @@ the named directory.
297294

298295

299296

300-
301-
302297
### func (\*Context) MatchFile
303298

304299
func (ctxt *Context) MatchFile(dir, name string) (match bool, err error)
@@ -313,8 +308,6 @@ read some or all of the file's content.
313308

314309

315310

316-
317-
318311
### func (\*Context) SrcDirs
319312

320313
func (ctxt *Context) SrcDirs() []string
@@ -329,7 +322,6 @@ that do not exist.
329322

330323

331324

332-
333325
## type ImportMode
334326
<pre>type ImportMode uint</pre>
335327
An ImportMode controls the behavior of the Import method.
@@ -379,7 +371,6 @@ test files, files hidden by build tags, and so on.)
379371

380372

381373

382-
383374
### func (\*NoGoError) Error
384375

385376
func (e *NoGoError) Error() string
@@ -390,7 +381,6 @@ test files, files hidden by build tags, and so on.)
390381

391382

392383

393-
394384
## type Package
395385
<pre>type Package struct {
396386
Dir string // directory containing package sources
@@ -470,7 +460,6 @@ ImportDir is shorthand for Default.ImportDir.
470460

471461

472462

473-
474463
### func (\*Package) IsCommand
475464

476465
func (p *Package) IsCommand() bool
@@ -489,6 +478,5 @@ Packages named "main" are treated as commands.
489478

490479

491480

492-
493481
- - -
494482
Generated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)

examples/fs/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ WalkFS returns a new Walker rooted at root on the FileSystem fs.
9191

9292

9393

94-
9594
### func (\*Walker) Err
9695

9796
func (w *Walker) Err() error
@@ -103,8 +102,6 @@ an error, w will not descend into that directory.
103102

104103

105104

106-
107-
108105
### func (\*Walker) Path
109106

110107
func (w *Walker) Path() string
@@ -117,8 +114,6 @@ a directory containing the file "a", Path will return "dir/a".
117114

118115

119116

120-
121-
122117
### func (\*Walker) SkipDir
123118

124119
func (w *Walker) SkipDir()
@@ -129,8 +124,6 @@ If w is not on a directory, SkipDir has no effect.
129124

130125

131126

132-
133-
134127
### func (\*Walker) Stat
135128

136129
func (w *Walker) Stat() os.FileInfo
@@ -141,8 +134,6 @@ visited by a call to Step.
141134

142135

143136

144-
145-
146137
### func (\*Walker) Step
147138

148139
func (w *Walker) Step() bool
@@ -162,6 +153,5 @@ It returns false when the walk stops at the end of the tree.
162153

163154

164155

165-
166156
- - -
167157
Generated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)

examples/martini/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ New creates a bare bones Martini instance. Use this method if you want to have f
201201

202202

203203

204-
205204
### func (\*Martini) Action
206205

207206
func (m *Martini) Action(handler Handler)
@@ -211,8 +210,6 @@ Action sets the handler that will be called after all the middleware has been in
211210

212211

213212

214-
215-
216213
### func (\*Martini) Handlers
217214

218215
func (m *Martini) Handlers(handlers ...Handler)
@@ -223,8 +220,6 @@ Will panic if any of the handlers is not a callable function
223220

224221

225222

226-
227-
228223
### func (\*Martini) Run
229224

230225
func (m *Martini) Run()
@@ -234,8 +229,6 @@ Run the http server. Listening on os.GetEnv("PORT") or 3000 by default.
234229

235230

236231

237-
238-
239232
### func (\*Martini) ServeHTTP
240233

241234
func (m *Martini) ServeHTTP(res http.ResponseWriter, req *http.Request)
@@ -245,8 +238,6 @@ ServeHTTP is the HTTP Entry point for a Martini instance. Useful if you want to
245238

246239

247240

248-
249-
250241
### func (\*Martini) Use
251242

252243
func (m *Martini) Use(handler Handler)
@@ -259,7 +250,6 @@ Use adds a middleware Handler to the stack. Will panic if the handler is not a c
259250

260251

261252

262-
263253
## type Params
264254
<pre>type Params map[string]string</pre>
265255
Params is a map of name/value pairs for named routes. An instance of martini.Params is available to be injected into any route handler.

examples/sessions/README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ strong keys.
233233

234234

235235

236-
237236
### func (\*CookieStore) Get
238237

239238
func (s *CookieStore) Get(r *http.Request, name string) (*Session, error)
@@ -249,8 +248,6 @@ not be decoded.
249248

250249

251250

252-
253-
254251
### func (\*CookieStore) New
255252

256253
func (s *CookieStore) New(r *http.Request, name string) (*Session, error)
@@ -264,8 +261,6 @@ decoded session after the first call.
264261

265262

266263

267-
268-
269264
### func (\*CookieStore) Save
270265

271266
func (s *CookieStore) Save(r *http.Request, w http.ResponseWriter,
@@ -279,7 +274,6 @@ Save adds a single session to the response.
279274

280275

281276

282-
283277
## type FilesystemStore
284278
<pre>type FilesystemStore struct {
285279
Codecs []securecookie.Codec
@@ -318,7 +312,6 @@ See NewCookieStore() for a description of the other parameters.
318312

319313

320314

321-
322315
### func (\*FilesystemStore) Get
323316

324317
func (s *FilesystemStore) Get(r *http.Request, name string) (*Session, error)
@@ -330,8 +323,6 @@ See CookieStore.Get().
330323

331324

332325

333-
334-
335326
### func (\*FilesystemStore) MaxLength
336327

337328
func (s *FilesystemStore) MaxLength(l int)
@@ -343,8 +334,6 @@ The default for a new FilesystemStore is 4096.
343334

344335

345336

346-
347-
348337
### func (\*FilesystemStore) New
349338

350339
func (s *FilesystemStore) New(r *http.Request, name string) (*Session, error)
@@ -356,8 +345,6 @@ See CookieStore.New().
356345

357346

358347

359-
360-
361348
### func (\*FilesystemStore) Save
362349

363350
func (s *FilesystemStore) Save(r *http.Request, w http.ResponseWriter,
@@ -371,7 +358,6 @@ Save adds a single session to the response.
371358

372359

373360

374-
375361
## type MultiError
376362
<pre>type MultiError []error</pre>
377363
MultiError stores multiple errors.
@@ -389,7 +375,6 @@ Borrowed from the App Engine SDK.
389375

390376

391377

392-
393378
### func (MultiError) Error
394379

395380
func (m MultiError) Error() string
@@ -400,7 +385,6 @@ Borrowed from the App Engine SDK.
400385

401386

402387

403-
404388
## type Options
405389
<pre>type Options struct {
406390
Path string
@@ -457,7 +441,6 @@ GetRegistry returns a registry instance for the current request.
457441

458442

459443

460-
461444
### func (\*Registry) Get
462445

463446
func (s *Registry) Get(store Store, name string) (session *Session, err error)
@@ -469,8 +452,6 @@ It returns a new session if there are no sessions registered for the name.
469452

470453

471454

472-
473-
474455
### func (\*Registry) Save
475456

476457
func (s *Registry) Save(w http.ResponseWriter) error
@@ -483,7 +464,6 @@ Save saves all sessions registered for the current request.
483464

484465

485466

486-
487467
## type Session
488468
<pre>type Session struct {
489469
ID string
@@ -515,7 +495,6 @@ NewSession is called by session stores to create a new session instance.
515495

516496

517497

518-
519498
### func (\*Session) AddFlash
520499

521500
func (s *Session) AddFlash(value interface{}, vars ...string)
@@ -528,8 +507,6 @@ the flash key. If not defined "_flash" is used by default.
528507

529508

530509

531-
532-
533510
### func (\*Session) Flashes
534511

535512
func (s *Session) Flashes(vars ...string) []interface{}
@@ -542,8 +519,6 @@ the flash key. If not defined "_flash" is used by default.
542519

543520

544521

545-
546-
547522
### func (\*Session) Name
548523

549524
func (s *Session) Name() string
@@ -553,8 +528,6 @@ Name returns the name used to register the session.
553528

554529

555530

556-
557-
558531
### func (\*Session) Save
559532

560533
func (s *Session) Save(r *http.Request, w http.ResponseWriter) error
@@ -565,8 +538,6 @@ store.Save(request, response, session)
565538

566539

567540

568-
569-
570541
### func (\*Session) Store
571542

572543
func (s *Session) Store() Store
@@ -579,7 +550,6 @@ Store returns the session store used to register the session.
579550

580551

581552

582-
583553
## type Store
584554
<pre>type Store interface {
585555
// Get should return a cached session.

template.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ var pkgTemplate = `{{with .PDoc}}{{if $.IsMain}}
6363
{{end}}
6464
6565
{{range .Methods}}
66-
{{$name_html := html .Name}}
67-
### func ({{md .Recv}}) {{$name_html}}
66+
{{$name_html := html .Name}}### func ({{md .Recv}}) {{$name_html}}
6867
6968
{{node $ .Decl}}
7069
7170
{{comment_md .Doc}}
72-
{{$name := printf "%s_%s" $tname .Name}}
73-
{{example_html $ $name}}
71+
{{$name := printf "%s_%s" $tname .Name}}{{example_html $ $name}}
7472
{{end}}
7573
{{end}}
7674
{{end}}

0 commit comments

Comments
 (0)