Created
December 9, 2016 21:56
-
-
Save jayunit100/0285b5c857ecd83fb5bba5b0b581e903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// output: | |
// 0 | |
// 0 | |
fmt.Println(len(e.Spec.SchedulingMismatchedPredicateResults)) | |
fmt.Println(len(a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults)) | |
// output: | |
// false | |
fmt.Println(reflect.DeepEqual( | |
e.Spec.SchedulingMismatchedPredicateResults, | |
a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults)) | |
// output: | |
// map[string]int64 | |
// map[string]int64 | |
fmt.Println(reflect.TypeOf(e.Spec.SchedulingMismatchedPredicateResults)) | |
fmt.Println(reflect.TypeOf(a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment