mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add a counter helper
This commit is contained in:
parent
e0e19a934f
commit
0988b76a78
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue