Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created December 9, 2016 21:56
Show Gist options
  • Save jayunit100/0285b5c857ecd83fb5bba5b0b581e903 to your computer and use it in GitHub Desktop.
Save jayunit100/0285b5c857ecd83fb5bba5b0b581e903 to your computer and use it in GitHub Desktop.
// 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