go – How to compare two structs in Golang

I am trying to compare two struct values one coming from mongodb and other is payload coming from req.

1. struct from req payload: map(mongo_info:map(certificate: type:mongo url:mongodb://username:password@mongodb.dev:27019))

2. struct from DB : map(mongo_info:{ mongo mongodb://username: password@mongodb.dev:27019})

I am trying to compare these two using

fmt.Println(cmp.Equal(struct1, struct2))

But getting false although values for each key is same. Is it because the format is different for both the structs, in case how we can convert the format of one to other.