File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -293,15 +293,17 @@ <h4 id="build-lines"><code>//go:build</code> lines</h4>
293
293
< a href ="https://golang.org/design/draft-gobuild "> https://golang.org/design/draft-gobuild</ a > .
294
294
</ p >
295
295
296
- < h3 id ="gofmt "> < code > gofmt</ code > </ h3 >
296
+ < h3 id ="gofmt "> Gofmt</ h3 >
297
+
298
+ < p >
297
299
< code > gofmt</ code > (and < code > go</ code > < code > fmt</ code > ) now synchronizes
298
300
< code > //go:build</ code > lines with < code > // +build</ code > lines. If a file
299
301
only has < code > // +build</ code > lines, they will be moved to the appropriate
300
302
location in the file, and matching < code > //go:build</ code > lines will be
301
303
added. Otherwise, < code > // +build</ code > lines will be overwritten based on
302
304
any existing < code > //go:build</ code > lines. For more information, see
303
305
< a href ="https://golang.org/design/draft-gobuild "> https://golang.org/design/draft-gobuild</ a > .
304
- </ h3 >
306
+ </ p >
305
307
306
308
< h3 id ="vet "> Vet</ h3 >
307
309
You can’t perform that action at this time.
0 commit comments