mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
Add a counter helper
This commit is contained in:
1 file changed
+4
@@ -17,6 +17,7 @@ package types
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
@@ -90,3 +91,6 @@ func IsNil(v any) bool {
|
||||
type DevMarker interface {
|
||||
DevOnly()
|
||||
}
|
||||
|
||||
// This is only used for debugging purposes.
|
||||
var InvocationCounter atomic.Int64
|
||||
Reference in new issue
Block a user