I think http://golang.org/pkg/reflect/#DeepEqual might replace this.