diff options
Diffstat (limited to 'docs/content/en/functions/math/Counter.md')
-rw-r--r-- | docs/content/en/functions/math/Counter.md | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/content/en/functions/math/Counter.md b/docs/content/en/functions/math/Counter.md index 457806b8e..16456cec6 100644 --- a/docs/content/en/functions/math/Counter.md +++ b/docs/content/en/functions/math/Counter.md @@ -3,11 +3,11 @@ title: math.Counter description: Increments and returns a global counter. categories: [] keywords: [] -action: - aliases: [] - related: [] - returnType: uint64 - signatures: [math.Counter] +params: + functions_and_methods: + aliases: [] + returnType: uint64 + signatures: [math.Counter] --- The counter is global for both monolingual and multilingual sites, and its initial value for each build is 1. @@ -27,9 +27,7 @@ Use this function to: - Create unique warnings as shown above; the [`warnf`] function suppresses duplicate messages - Create unique target paths for the `resources.FromString` function where the target path is also the cache key -[`warnf`]: /functions/fmt/warnf/ -[`resources.FromString`]: /functions/resources/fromstring/ +> [!note] +> Due to concurrency, the value returned in a given template for a given page will vary from one build to the next. You cannot use this function to assign a static id to each page. -{{% note %}} -Due to concurrency, the value returned in a given template for a given page will vary from one build to the next. You cannot use this function to assign a static id to each page. -{{% /note %}} +[`warnf`]: /functions/fmt/warnf/ |