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 (
|
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
|
||||||
|
Reference in New Issue
Block a user