Can anyone point me at an example of building a golang package with a 'compat' package to support an older version?

I'm having trouble finding documentation to make sure it's added the 'right' way.

Thanks,
fuller
Mark E. Fuller, Ph.D.
fuller@fedoraproject.org
fuller@mefuller.dev
@fuller:fedora.im
@fuller:one.ems.host
https://mefuller.dev
PGP Fingerprint: 73F1 A30C BDF4 DB4B C75F FD0F D599 E76C FFCA BF60