examples/keyboard: Avoid build tags in templates

This commit is contained in:
Hajime Hoshi 2016-10-16 03:40:03 +09:00
parent e24415d90b
commit 7b48ea201c

View File

@ -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,
}) })