1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 06:32:28 +08:00

doc: add go playground demo

This commit is contained in:
dudaodong
2023-07-04 16:31:13 +08:00
parent 584aabdf62
commit 154ec56780
8 changed files with 136 additions and 49 deletions

View File

@@ -717,7 +717,7 @@ func main() {
### <span id="GetTodayStartTime">GetTodayStartTime</span>
<p>返回当天开始时间, 格式: yyyy-mm-dd 00:00:00.</p>
<p>返回当天开始时间, 格式: yyyy-mm-dd 00:00:00</p>
<b>函数签名:</b>
@@ -746,7 +746,7 @@ func main() {
### <span id="GetTodayEndTime">GetTodayEndTime</span>
<p>返回当天结束时间,格式: yyyy-mm-dd 23:59:59.</p>
<p>返回当天结束时间,格式: yyyy-mm-dd 23:59:59</p>
<b>函数签名:</b>

View File

@@ -237,9 +237,9 @@ import (
)
func main() {
t := tuple.NewTuple2(1, 0.1, "a")
t := tuple.NewTuple3(1, 0.1, "a")
v1, v2, v3 := t.Unbox()
fmt.Printf("%v %v %v", t.FieldA, t.FieldB, t.FieldC)
fmt.Printf("%v %v %v", v1, v2, v3)
// Output: 1 0.1 a
}
@@ -1134,8 +1134,6 @@ func main() {
fmt.Printf("%v %v %v %v %v %v %v %v %v %v", v1, v2, v3, v4, v5, v6, v7, v8, v9, v10)
// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}
// Output: 1 0.1 a true 2 2.2 b c map[a:1]
}
```

View File

@@ -239,7 +239,7 @@ import (
func main() {
t := tuple.NewTuple2(1, 0.1, "a")
v1, v2, v3 := t.Unbox()
fmt.Printf("%v %v %v", t.FieldA, t.FieldB, t.FieldC)
fmt.Printf("%v %v %v", v1, v2, v3)
// Output: 1 0.1 a
}
@@ -1134,8 +1134,6 @@ func main() {
fmt.Printf("%v %v %v %v %v %v %v %v %v %v", v1, v2, v3, v4, v5, v6, v7, v8, v9, v10)
// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}
// Output: 1 0.1 a true 2 2.2 b c map[a:1]
}
```