1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

doc: update for release v2.2.8

This commit is contained in:
dudaodong
2023-12-11 15:30:33 +08:00
parent c5297ec329
commit 96320069f4
9 changed files with 29 additions and 19 deletions

View File

@@ -231,7 +231,7 @@ func main() {
func RandSymbolChar(length int) string
```
<b>示例:</b>
<b>示例:<span style="float:right;display:inline-block;">[Run](https://go.dev/play/p/Im6ZJxAykOm)</span></b>
```go
package main
@@ -243,7 +243,7 @@ import (
func main() {
randStr := random.RandSymbolChar(6)
fmt.Println(randStr) //@#(_")
fmt.Println(randStr) // 随机特殊字符字符串,例如: @#(_")
}
```
@@ -312,7 +312,7 @@ func main() {
func RandFloat(min, max float64, precision int) float64
```
<b>实例:</b>
<b>实例:<span style="float:right;display:inline-block;">[运行](https://go.dev/play/p/zbD_tuobJtr)</span></b>
```go
package main
@@ -338,7 +338,7 @@ func main() {
func RandFloats(n int, min, max float64, precision int) []float64
```
<b>实例:</b>
<b>实例:<span style="float:right;display:inline-block;">[Run](https://go.dev/play/p/I3yndUQ-rhh)</span></b>
```go
package main

View File

@@ -2501,7 +2501,7 @@ func main() {
func Random[T any](slice []T) (val T, idx int)
```
<b>示例:<span style="float:right;display:inline-block;">[运行](TODO)</span></b>
<b>示例:<span style="float:right;display:inline-block;">[运行](https://go.dev/play/p/UzpGQptWppw)</span></b>
```go
import (