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 package assets

View File

@ -189,7 +189,7 @@ func outputKeyboardImage() (map[string]image.Rectangle, error) {
const keyRectTmpl = `{{.License}} 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}} {{.BuildTags}}

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 // +build example

View File

@ -132,7 +132,7 @@ func init() {
const ebitenKeysTmpl = `{{.License}} const ebitenKeysTmpl = `{{.License}}
// {{.Notice}} {{.DoNotEdit}}
package ebiten package ebiten
@ -154,7 +154,7 @@ const (
const uiKeysTmpl = `{{.License}} const uiKeysTmpl = `{{.License}}
// {{.Notice}} {{.DoNotEdit}}
package ui package ui
@ -168,7 +168,7 @@ const (
const uiKeysGlfwTmpl = `{{.License}} const uiKeysGlfwTmpl = `{{.License}}
// {{.Notice}} {{.DoNotEdit}}
{{.BuildTag}} {{.BuildTag}}
@ -192,7 +192,7 @@ var glfwKeyCodeToKey = map[glfw.Key]Key{
const uiKeysJSTmpl = `{{.License}} const uiKeysJSTmpl = `{{.License}}
// {{.Notice}} {{.DoNotEdit}}
{{.BuildTag}} {{.BuildTag}}
@ -295,7 +295,8 @@ func main() {
log.Fatal(err) 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{}{} namesSet := map[string]struct{}{}
namesWithoutModsSet := map[string]struct{}{} namesWithoutModsSet := map[string]struct{}{}
@ -350,7 +351,7 @@ func main() {
// NOTE: According to godoc, maps are automatically sorted by key. // NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, map[string]interface{}{ if err := tmpl.Execute(f, map[string]interface{}{
"License": license, "License": license,
"Notice": notice, "DoNotEdit": doNotEdit,
"BuildTag": buildTag, "BuildTag": buildTag,
"NameToCodes": nameToCodes, "NameToCodes": nameToCodes,
"KeyCodeToNameEdge": keyCodeToNameEdge, "KeyCodeToNameEdge": keyCodeToNameEdge,

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 package ui

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 darwin freebsd linux windows
// +build !js // +build !js

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 // +build js

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 package ebiten