Add a counter helper

This commit is contained in:
Bjørn Erik Pedersen 2023-05-15 09:23:26 +02:00
parent e0e19a934f
commit 0988b76a78
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -17,6 +17,7 @@ package types
import ( import (
"fmt" "fmt"
"reflect" "reflect"
"sync/atomic"
"github.com/spf13/cast" "github.com/spf13/cast"
) )
@ -90,3 +91,6 @@ func IsNil(v any) bool {
type DevMarker interface { type DevMarker interface {
DevOnly() DevOnly()
} }
// This is only used for debugging purposes.
var InvocationCounter atomic.Int64