mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Add a counter helper
This commit is contained in:
@@ -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