mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Follow the standard comment rule
See https://golang.org/s/generatedcode
This commit is contained in:
parent
86be32dfb5
commit
ef5de62780
@ -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
|
||||
|
||||
|
@ -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}}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
13
genkeys.go
13
genkeys.go
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user