Feature/example test (#24)

example docs
This commit is contained in:
jeffery
2023-04-12 15:09:44 +08:00
committed by GitHub
parent ac72afe256
commit e9cc195c39
39 changed files with 662 additions and 28 deletions

View File

@@ -0,0 +1,15 @@
package sliceUtil
import "fmt"
func ExampleMergeSlice() {
slice1 := []int{1, 2, 3}
slice2 := []int{4, 5, 6}
slice3 := []int{7, 8, 9}
res := MergeSlice(slice1, slice2, slice3)
fmt.Printf("%+v", res)
// Output:
// [1 2 3 4 5 6 7 8 9]
}