INNER CODE UNIT · Go
init
arp242/goatcounter · cmd/goatcounter/main.go:32
func init() {
errors.Package = "zgo.at/goatcounter/v2"
}
type command func(f zli.Flags, ready chan<- struct{}, stop chan struct{}) error
func main() {
// Linux doesn't allow some environment variables to be set if any
// capability bits (such as cap_net_bind_service) are set, so also read from
// GOATCOUNTER_TMPDIR
if v, ok := os.LookupEnv("GOATCOUNTER_TMPDIR"); ok {
os.Setenv("TMPDIR", v)
os.Unsetenv("GOATCOUNTER_TMPDIR")
}
var (
f = zli.NewFlags(os.Args)
ready = make(chan struct{}, 1)