LEFT | RIGHT |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package main | 5 package main |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "flag" | 9 "flag" |
10 "fmt" | 10 "fmt" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}} | 184 var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}} |
185 | 185 |
186 {{end}}{{.Long | trim}} | 186 {{end}}{{.Long | trim}} |
187 ` | 187 ` |
188 | 188 |
189 var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser
ved. | 189 var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser
ved. |
190 // Use of this source code is governed by a BSD-style | 190 // Use of this source code is governed by a BSD-style |
191 // license that can be found in the LICENSE file. | 191 // license that can be found in the LICENSE file. |
192 | 192 |
| 193 // DO NOT EDIT THIS FILE. GENERATED BY mkdoc.sh. |
| 194 // Edit the documentation in other files and rerun mkdoc.sh to generate this one
. |
| 195 |
193 /* | 196 /* |
194 {{range .}}{{if .Short}}{{.Short | capitalize}} | 197 {{range .}}{{if .Short}}{{.Short | capitalize}} |
195 | 198 |
196 {{end}}{{if .Runnable}}Usage: | 199 {{end}}{{if .Runnable}}Usage: |
197 | 200 |
198 go {{.UsageLine}} | 201 go {{.UsageLine}} |
199 | 202 |
200 {{end}}{{.Long | trim}} | 203 {{end}}{{.Long | trim}} |
201 | 204 |
202 | 205 |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 if t := clash[fold]; t != "" { | 644 if t := clash[fold]; t != "" { |
642 if s > t { | 645 if s > t { |
643 s, t = t, s | 646 s, t = t, s |
644 } | 647 } |
645 return s, t | 648 return s, t |
646 } | 649 } |
647 clash[fold] = s | 650 clash[fold] = s |
648 } | 651 } |
649 return "", "" | 652 return "", "" |
650 } | 653 } |
LEFT | RIGHT |