mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
17 lines
377 B
Go
17 lines
377 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
//go:build roaringstats
|
|
// +build roaringstats
|
|
|
|
package roaring
|
|
|
|
import (
|
|
"github.com/molecula/featurebase/v2/stats"
|
|
)
|
|
|
|
var statsEv = stats.NewExpvarStatsClient()
|
|
|
|
// statsHit increments the given stat, so we can tell how often we've hit
|
|
// that particular event.
|
|
func statsHit(name string) {
|
|
statsEv.Count(name, 1, 1)
|
|
}
|