try https://pkg.go.dev/golang.org/x/tools/cmd/gomvpkg
On Friday, 21 October 2022 at 16:58:57 UTC+1 mr....@gmail.com wrote: > I'm looking for a tool like this, I've searched google and github and > can't find one, have you guys used such a tool? > > I use a method like this in my code > > k8s.io/apimachinery/pkg/util/diff.ObjectReflectDiff > > k8s.io/apimachinery/pkg/util/diff is his import path, later I want to > switch to another method. > > github.com/google/go-cmp/cmp.Diff > > github.com/google/go-cmp/cmp is his import path. > > I would like to ask if there is a more convenient tool for replacing the > whole project? > > k8s.io/apimachinery/pkg/util/diff.ObjectReflectDiff -> > github.com/google/go-cmp/cmp.Diff > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/57c42d1b-32a5-4e69-95dc-1e0264d8988bn%40googlegroups.com.