1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 14:42:27 +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

@@ -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]
}
```