blob: 06e1f003026a2ce6db0cd5ef487e659d572b0528 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package main
import (
"strings"
)
var Caps = map[string]string{}
var capls string
var capls302 string
// Can't be in init() because Caps will be registered with init in the future
// and init()s are executed by filename alphabetical order
func setupCapls() {
capls = ""
capls302 = ""
for k, v := range Caps {
capls += k
capls302 += k
if v != "" {
capls302 += "=" + v
}
capls += " "
capls302 += " "
}
capls = strings.TrimSuffix(capls, " ")
capls302 = strings.TrimSuffix(capls302, " ")
}
|