mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-09 04:27:48 -04:00
Add a counter helper
This commit is contained in:
parent
e0e19a934f
commit
0988b76a78
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user