mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Acos VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Acos 1 }} → 0
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Asin VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Asin 1 }} → 1.5707963267948966
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Atan VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Atan 1 }} → 0.7853981633974483
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Atan2 VALUE VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Atan2 1 2 }} → 0.4636476090008061
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Cos VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Cos 1 }} → 0.5403023058681398
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Pi]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Pi }} → 3.141592653589793
|
||||
|
@@ -15,7 +15,7 @@ action:
|
||||
signatures: [math.Product VALUE...]
|
||||
---
|
||||
|
||||
{{< new-in 0.114.0 >}}
|
||||
{{< new-in 0.114.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Product 1 (slice 2 3) 4 }} → 24
|
||||
|
@@ -10,7 +10,7 @@ action:
|
||||
signatures: [math.Rand]
|
||||
---
|
||||
|
||||
{{< new-in 0.121.2 >}}
|
||||
{{< new-in 0.121.2 />}}
|
||||
|
||||
The `math.Rand` function returns a pseudo-random number in the half-open [interval](g) [0.0, 1.0).
|
||||
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Sin VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Sin 1 }} → 0.8414709848078965
|
||||
|
@@ -14,7 +14,7 @@ action:
|
||||
signatures: [math.Sum VALUE...]
|
||||
---
|
||||
|
||||
{{< new-in 0.114.0 >}}
|
||||
{{< new-in 0.114.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Sum 1 (slice 2 3) 4 }} → 10
|
||||
|
@@ -17,7 +17,7 @@ action:
|
||||
signatures: [math.Tan VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.Tan 1 }} → 1.557407724654902
|
||||
|
@@ -12,7 +12,7 @@ action:
|
||||
signatures: [math.ToDegrees VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.ToDegrees 1.5707963267948966 }} → 90
|
||||
|
@@ -12,7 +12,7 @@ action:
|
||||
signatures: [math.ToRadians VALUE]
|
||||
---
|
||||
|
||||
{{< new-in 0.130.0 >}}
|
||||
{{< new-in 0.130.0 />}}
|
||||
|
||||
```go-html-template
|
||||
{{ math.ToRadians 90 }} → 1.5707963267948966
|
||||
|
Reference in New Issue
Block a user