This was one of the many techniques apologist and Christian CS Lewis used to explain why peoples' attempts to justify firm moral rules was futile without admitting that those rules came from somewhere other than popular whim.
It's impossible.
The Golden Rule is, (in my opinion), not relevant. And God's commandments are much more than the golden rule, although that's an oft-quoted tiny portion of Biblical teaching.
The Golden Rule doesn't work in many situations. How about the high school coach who wants to be sexual with a 17 yr old girl?
He may well decide that he would be fine with that if the roles were reversed. Yet, society deems it illegal.
In relationships this failure becomes especially obvious. Many is the time my wife or I have justified our actions toward the other by thinking (or saying), "Well, I'm fine with that" [going both directions]. Well, the other person may find it hurtful nonetheless.
It doesn't even work for Murder. A person may walk up to a drug dealer and shoot them in the head, saying to the watching crowd: "Are you kidding? Heck yeah - if I ever become a drug dealer, shoot me in the head".
It just doesn't work.
History makes this clear too. The whims of the majority has never been sufficient to eliminate bad actions. The current mood or opinions of society is probably one of the worst basis, and has been over time, that can even be imagined. In fact those majority opinions have perpetrated some of the worst things in history.
I think this discussion is more easily had with unbelievers when we simply limit the terminology a bit - if the "God" word is problematic, I use "Absolute Truth" instead - because that opens the door to the other person choosing whatever their conception of that absolute power may be (yes I know there are some who will say there is none, but it gets closer to something people may agree on, or at least run out of rationalizations against).
That is, civilization just doesn't work very well without absolute truth. Not your truth, not my truth, not the truth of the guy who may think killing people is fine in certain circumstances (and is happy to have the same rule applied to him):: just THE truth.
Without a belief in absolute truth, it is impossible to effectively claim one is moral, or has good moral values. Unless you are willing to acknowledge that "good moral values" simply means what the people around you have been persuaded to agree "good" means - in that particular month, year, decade, nation, tribe, gender, power level, class, or group. Rather than calling that "I have good moral values", it would be much more accurate to say "I conform to the current opinions". A bit less noble, indeed!
Without an absolute, unchanging Truth, there is no Truth. How can Truth be Truth if each person defines their own? It defies logic by anyone's standards!
I can't even imagine the odds of a book by 40 authors coming together over 1500 years and be in perfect harmony literally making more sense than anything else on Earth. Not a single fact has ever been disproven.
I'm putting all of my eggs in one basket