math.Sum
Returns the sum of all numbers. Accepts scalars, slices, or both.
Syntax
math.Sum VALUE...
Returns
float64
{{ math.Sum 1 (slice 2 3) 4 }} → 10
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page