]> Cypherpunks repositories - gostls13.git/commit
cmd/go: document convention to signify generated code.
authorAkhil Indurti <aindurti@gmail.com>
Thu, 14 Jun 2018 00:52:05 +0000 (20:52 -0400)
committerRob Pike <r@golang.org>
Thu, 14 Jun 2018 01:47:46 +0000 (01:47 +0000)
commitd7f874fef66483d6d123ffb9853bfa58d29dc94a
tree39d49cca0951babe1a6e7ba9de4e50e1c311aa56
parent2642df9a2c82b9de3e2868321cd109085d6910d3
cmd/go: document convention to signify generated code.

This change updates the go tool's documentation under the section
"Generate Go files by processing source" to mention the convention that
generated source files should have a line of text that matches the
following regular expression:

    ^// Code generated .* DO NOT EDIT\.$

Previously, the canonical documentation for this convention
(https://golang.org/s/generatedcode) referenced Rob Pike's comment at
https://golang.org/issue/13560#issuecomment-288457920. This change
merely moves that information to a more visible place.

Updates #25433.

Change-Id: I804d95d307d1dc68cb28da3750ebe9090178c474
Reviewed-on: https://go-review.googlesource.com/118756
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/generate/generate.go