mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/keyboard: Avoid build tags in templates
This commit is contained in:
parent
e24415d90b
commit
7b48ea201c
@ -169,7 +169,7 @@ const keyRectTmpl = `{{.License}}
|
||||
|
||||
// DO NOT EDIT: This file is auto-generated by gen.go.
|
||||
|
||||
// +build example
|
||||
{{.BuildTags}}
|
||||
|
||||
package keyboard
|
||||
|
||||
@ -206,6 +206,7 @@ func outputKeyRectsGo(k map[string]image.Rectangle) error {
|
||||
return err
|
||||
}
|
||||
return tmpl.Execute(f, map[string]interface{}{
|
||||
"BuildTags": "// +build example",
|
||||
"License": license,
|
||||
"KeyRectsMap": k,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user