mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17: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
|
package assets
|
||||||
|
|
||||||
|
@ -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}}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
13
genkeys.go
13
genkeys.go
@ -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,
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
2
keys.go
2
keys.go
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user