Use tags for go generate

This commit is contained in:
Unrud 2020-08-26 03:30:22 +02:00
parent ba9ed841d8
commit 38e6049304
4 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,5 @@
// +build portal x11
package main
var keysymsMap = map[rune]Keysym{

View file

@ -101,7 +101,8 @@ func main() {
}
keysymsMap[unicode] = keysym
}
content := "package main\n\n" +
content := "// +build portal x11\n\n" +
"package main\n\n" +
"var keysymsMap = map[rune]Keysym{\n"
keys := make([]rune, 0)
for key := range keysymsMap {

View file

@ -1,3 +1,5 @@
// +build portal x11
/*
* Copyright (c) 2018 Unrud <unrud@outlook.com>
*