aboutsummaryrefslogtreecommitdiff
path: root/cap.go
blob: e06a5fc79265421a016320482998e6fa684214fe (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
package main

import (
	"strings"
)

var Caps = map[string]string{}

var capls 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 = ""
	for k, v := range Caps {
		capls += k
		if v != "" {
			capls += "=" + v
		}
		capls += " "
	}
	capls = strings.TrimSuffix(capls, " ")
}