mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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.
|
// DO NOT EDIT: This file is auto-generated by gen.go.
|
||||||
|
|
||||||
// +build example
|
{{.BuildTags}}
|
||||||
|
|
||||||
package keyboard
|
package keyboard
|
||||||
|
|
||||||
@ -206,6 +206,7 @@ func outputKeyRectsGo(k map[string]image.Rectangle) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return tmpl.Execute(f, map[string]interface{}{
|
return tmpl.Execute(f, map[string]interface{}{
|
||||||
|
"BuildTags": "// +build example",
|
||||||
"License": license,
|
"License": license,
|
||||||
"KeyRectsMap": k,
|
"KeyRectsMap": k,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user