Исходники и презентации
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
type client struct {
|
||||
identifier string
|
||||
operations []int
|
||||
}
|
||||
|
||||
func main() {
|
||||
data1 := make([]client, 10)
|
||||
data2 := make([]client, 10)
|
||||
|
||||
data1[1].operations = append(data1[1].operations, 10)
|
||||
fmt.Println("equal:", reflect.DeepEqual(data1, data2))
|
||||
}
|
||||
Reference in New Issue
Block a user