Follow the standard comment rule

See https://golang.org/s/generatedcode
This commit is contained in:
Hajime Hoshi 2018-03-08 02:47:59 +09:00
parent 86be32dfb5
commit ef5de62780
8 changed files with 15 additions and 13 deletions

View File

@ -1,4 +1,5 @@
// DO NOT EDIT - This file is generated by file2byteslice
// Code generated by file2byteslice. DO NOT EDIT.
// (gofmt is fine after generating)
package assets

View File

@ -189,7 +189,7 @@ func outputKeyboardImage() (map[string]image.Rectangle, error) {
const keyRectTmpl = `{{.License}}
// DO NOT EDIT: This file is auto-generated by gen.go.
// Code generated by gen.go using 'go generate'. DO NOT EDIT.
{{.BuildTags}}

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT EDIT: This file is auto-generated by gen.go.
// Code generated by gen.go using 'go generate'. DO NOT EDIT.
// +build example

View File

@ -132,7 +132,7 @@ func init() {
const ebitenKeysTmpl = `{{.License}}
// {{.Notice}}
{{.DoNotEdit}}
package ebiten
@ -154,7 +154,7 @@ const (
const uiKeysTmpl = `{{.License}}
// {{.Notice}}
{{.DoNotEdit}}
package ui
@ -168,7 +168,7 @@ const (
const uiKeysGlfwTmpl = `{{.License}}
// {{.Notice}}
{{.DoNotEdit}}
{{.BuildTag}}
@ -192,7 +192,7 @@ var glfwKeyCodeToKey = map[glfw.Key]Key{
const uiKeysJSTmpl = `{{.License}}
// {{.Notice}}
{{.DoNotEdit}}
{{.BuildTag}}
@ -295,7 +295,8 @@ func main() {
log.Fatal(err)
}
notice := "DO NOT EDIT: This file is auto-generated by genkeys.go."
// Follow the standard comment rule (https://golang.org/s/generatedcode).
doNotEdit := "// Code generated by genkeys.go using 'go generate'. DO NOT EDIT."
namesSet := map[string]struct{}{}
namesWithoutModsSet := map[string]struct{}{}
@ -350,7 +351,7 @@ func main() {
// NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, map[string]interface{}{
"License": license,
"Notice": notice,
"DoNotEdit": doNotEdit,
"BuildTag": buildTag,
"NameToCodes": nameToCodes,
"KeyCodeToNameEdge": keyCodeToNameEdge,

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT EDIT: This file is auto-generated by genkeys.go.
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
package ui

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT EDIT: This file is auto-generated by genkeys.go.
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
// +build darwin freebsd linux windows
// +build !js

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT EDIT: This file is auto-generated by genkeys.go.
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
// +build js

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT EDIT: This file is auto-generated by genkeys.go.
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
package ebiten